-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into typing-hookspecs
- Loading branch information
Showing
37 changed files
with
605 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "Test Conda Build" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/test_conda_build.yaml" | ||
- "pyproject.toml" | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- release/\d{4}.\d{1,2}.\d{1,2} | ||
paths: | ||
- ".github/workflows/test_conda_build.yaml" | ||
- "pyproject.toml" | ||
|
||
jobs: | ||
test-conda-build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: "Checkout Infrastructure" | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
channels: conda-forge | ||
activate-environment: nebari-dev | ||
|
||
- name: Install dependencies | ||
run: | | ||
conda install build grayskull conda-build | ||
- name: Generate sdist | ||
run: | | ||
python -m build --sdist | ||
- name: Generate meta.yaml | ||
run: | | ||
python -m grayskull pypi dist/*.tar.gz | ||
- name: Build conda package | ||
run: | | ||
conda build nebari |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: test-gcp-integration | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Nebari branch to deploy, test, destroy' | ||
required: true | ||
default: develop | ||
type: string | ||
image-tag: | ||
description: 'Nebari image tag created by the nebari-docker-images repo' | ||
required: true | ||
default: main | ||
type: string | ||
tf-log-level: | ||
description: 'Change Terraform log levels' | ||
required: false | ||
default: info | ||
type: choice | ||
options: | ||
- info | ||
- warn | ||
- debug | ||
- trace | ||
- error | ||
|
||
env: | ||
NEBARI_GH_BRANCH: ${{ github.event.inputs.branch || 'develop' }} | ||
NEBARI_IMAGE_TAG: ${{ github.event.inputs.image-tag || 'main' }} | ||
TF_LOG: ${{ github.event.inputs.tf-log-level || 'info' }} | ||
|
||
|
||
jobs: | ||
test-do-integration: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.NEBARI_GH_BRANCH }} | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install Nebari | ||
run: | | ||
pip install .[dev] | ||
playwright install | ||
- name: Retrieve secret from Vault | ||
uses: hashicorp/[email protected] | ||
with: | ||
method: jwt | ||
url: "https://quansight-vault-public-vault-b2379fa7.d415e30e.z1.hashicorp.cloud:8200" | ||
namespace: "admin/quansight" | ||
role: "repository-nebari-dev-nebari-role" | ||
secrets: | | ||
kv/data/repository/nebari-dev/nebari/shared_secrets DIGITALOCEAN_TOKEN | DIGITALOCEAN_TOKEN; | ||
kv/data/repository/nebari-dev/nebari/cloudflare/[email protected]/nebari-dev-ci token | CLOUDFLARE_TOKEN; | ||
- name: Set Environment DO | ||
run: | | ||
echo "SPACES_ACCESS_KEY_ID=${{ secrets.SPACES_ACCESS_KEY_ID }}" >> $GITHUB_ENV | ||
echo "SPACES_SECRET_ACCESS_KEY=${{ secrets.SPACES_SECRET_ACCESS_KEY }}" >> $GITHUB_ENV | ||
echo "NEBARI_K8S_VERSION"=1.25.12-do.0 >> $GITHUB_ENV | ||
- name: Integration Tests | ||
run: | | ||
pytest --version | ||
pytest tests/tests_integration/ -vvv -s --cloud do | ||
env: | ||
NEBARI_SECRET__default_images__jupyterhub: "quay.io/nebari/nebari-jupyterhub:${{ env.NEBARI_IMAGE_TAG }}" | ||
NEBARI_SECRET__default_images__jupyterlab: "quay.io/nebari/nebari-jupyterlab:${{ env.NEBARI_IMAGE_TAG }}" | ||
NEBARI_SECRET__default_images__dask_worker: "quay.io/nebari/nebari-dask-worker:${{ env.NEBARI_IMAGE_TAG }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: test-gcp-integration | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Nebari branch to deploy, test, destroy' | ||
required: true | ||
default: develop | ||
type: string | ||
image-tag: | ||
description: 'Nebari image tag created by the nebari-docker-images repo' | ||
required: true | ||
default: main | ||
type: string | ||
tf-log-level: | ||
description: 'Change Terraform log levels' | ||
required: false | ||
default: info | ||
type: choice | ||
options: | ||
- info | ||
- warn | ||
- debug | ||
- trace | ||
- error | ||
|
||
env: | ||
NEBARI_GH_BRANCH: ${{ github.event.inputs.branch || 'develop' }} | ||
NEBARI_IMAGE_TAG: ${{ github.event.inputs.image-tag || 'main' }} | ||
TF_LOG: ${{ github.event.inputs.tf-log-level || 'info' }} | ||
|
||
|
||
jobs: | ||
test-gcp-integration: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ env.NEBARI_GH_BRANCH }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install Nebari | ||
run: | | ||
pip install .[dev] | ||
playwright install | ||
- name: Retrieve secret from Vault | ||
uses: hashicorp/[email protected] | ||
with: | ||
method: jwt | ||
url: "https://quansight-vault-public-vault-b2379fa7.d415e30e.z1.hashicorp.cloud:8200" | ||
namespace: "admin/quansight" | ||
role: "repository-nebari-dev-nebari-role" | ||
secrets: | | ||
kv/data/repository/nebari-dev/nebari/google_cloud_platform/nebari-dev-ci/github-nebari-dev-repo-ci project_id | PROJECT_ID; | ||
kv/data/repository/nebari-dev/nebari/google_cloud_platform/nebari-dev-ci/github-nebari-dev-repo-ci workload_identity_provider | GCP_WORKFLOW_PROVIDER; | ||
kv/data/repository/nebari-dev/nebari/google_cloud_platform/nebari-dev-ci/github-nebari-dev-repo-ci service_account_name | GCP_SERVICE_ACCOUNT; | ||
kv/data/repository/nebari-dev/nebari/cloudflare/[email protected]/nebari-dev-ci token | CLOUDFLARE_TOKEN; | ||
- name: 'Authenticate to GCP' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
token_format: access_token | ||
workload_identity_provider: ${{ env.GCP_WORKFLOW_PROVIDER }} | ||
service_account: ${{ env.GCP_SERVICE_ACCOUNT }} | ||
|
||
- name: Set required environment variables | ||
run: | | ||
echo "GOOGLE_CREDENTIALS=${{ env.GOOGLE_APPLICATION_CREDENTIALS }}" >> $GITHUB_ENV | ||
- name: Integration Tests | ||
run: | | ||
pytest --version | ||
pytest tests/tests_integration/ -vvv -s --cloud gcp | ||
env: | ||
NEBARI_SECRET__default_images__jupyterhub: "quay.io/nebari/nebari-jupyterhub:${{ env.NEBARI_IMAGE_TAG }}" | ||
NEBARI_SECRET__default_images__jupyterlab: "quay.io/nebari/nebari-jupyterlab:${{ env.NEBARI_IMAGE_TAG }}" | ||
NEBARI_SECRET__default_images__dask_worker: "quay.io/nebari/nebari-dask-worker:${{ env.NEBARI_IMAGE_TAG }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.