-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
421 changed files
with
12,397 additions
and
5,425 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
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,76 @@ | ||
name: Update API docs | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "src/_nebari/subcommands/**" | ||
- "src/_nebari/cli.py" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "src/_nebari/subcommands/**" | ||
- "src/_nebari/cli.py" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update_api: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
working-directory: ./docs-sphinx | ||
steps: | ||
- name: Check out repository 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install nebari and docs dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e "../[docs]" | ||
- name: Generate new API docs | ||
run: | | ||
make html | ||
- name: Copy cli doc | ||
run: | | ||
cp _build/html/cli.html cli.html | ||
- name: Look for changes to generated docs | ||
uses: tj-actions/verify-changed-files@v12 | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
docs-sphinx/cli.html | ||
- name: Create Pull Request in code repo | ||
id: create_pull_request | ||
uses: peter-evans/create-pull-request@v4 | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' && github.event_name != 'pull_request' | ||
with: | ||
token: ${{ secrets.NEBARI_SENSEI_API_DOCS_PR_OPENER }} | ||
commit-message: Update api docs | ||
committer: GitHub <noreply@github.com> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: auto_cli_doc_update | ||
delete-branch: true | ||
title: '[AUTO] Update CLI doc' | ||
body: | | ||
Update CLI doc | ||
- Auto-generated by [create-pull-request][1] | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
"area: documentation 📖" | ||
draft: false | ||
base: ${{ github.head_ref }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: test-aws-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: | ||
AWS_DEFAULT_REGION: "us-west-2" | ||
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-aws-integration: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
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/vault-action@v2.5.0 | ||
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/amazon_web_services/nebari-dev-ci role_name | AWS_ROLE_ARN; | ||
kv/data/repository/nebari-dev/nebari/cloudflare/internal-devops@quansight.com/nebari-dev-ci token | CLOUDFLARE_TOKEN; | ||
- name: Authenticate to AWS | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ env.AWS_ROLE_ARN }} | ||
role-session-name: github-action | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
|
||
- name: Integration Tests | ||
run: | | ||
pytest --version | ||
pytest tests/tests_integration/ -vvv -s --cloud aws | ||
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 }}" |
Oops, something went wrong.