AWS Deployment #7
This file contains hidden or 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
| name: AWS Deployment | |
| on: | |
| schedule: | |
| - cron: "0 0 * * MON" | |
| workflow_dispatch: | |
| inputs: | |
| 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_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 | |
| if: ${{ vars.SKIP_AWS_INTEGRATION_TEST != 'true' }} | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install Nebari and MLflow Plugin | |
| run: | | |
| git clone https://github.com/nebari-dev/nebari.git | |
| cd nebari | |
| pip install -e .[dev] | |
| cd .. | |
| pip install -e . | |
| playwright install | |
| - name: Authenticate to AWS | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
| role-session-name: github-action | |
| aws-region: ${{ env.AWS_DEFAULT_REGION }} | |
| - name: Integration Tests | |
| run: | | |
| pytest --version | |
| pytest nebari/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 }}" | |
| CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} |