forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nebari-dev:develop' into bug-2599-JHUB
- Loading branch information
Showing
146 changed files
with
4,705 additions
and
5,552 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
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 |
---|---|---|
|
@@ -33,6 +33,7 @@ on: | |
pr_number: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
|
||
# When the cancel-in-progress: true option is specified, any concurrent jobs or workflows using the same | ||
# concurrency group will cancel both the pending and currently running jobs or workflows. This allows only | ||
|
@@ -48,7 +49,7 @@ jobs: | |
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: 'Checkout Infrastructure' | ||
- name: "Checkout Infrastructure" | ||
uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -145,21 +146,21 @@ jobs: | |
nebari keycloak adduser --user "${TEST_USERNAME}" "${TEST_PASSWORD}" --config nebari-config.yaml | ||
nebari keycloak listusers --config nebari-config.yaml | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Get nebari-config.yaml full path | ||
run: echo "NEBARI_CONFIG_PATH=`realpath ./local-deployment/nebari-config.yaml`" >> "$GITHUB_ENV" | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
### DEPLOYMENT TESTS | ||
- name: Deployment Pytests | ||
env: | ||
CYPRESS_EXAMPLE_USER_NAME: ${{ env.TEST_USERNAME }} | ||
CYPRESS_EXAMPLE_USER_PASSWORD: ${{ env.TEST_PASSWORD }} | ||
CYPRESS_BASE_URL: https://github-actions.nebari.dev/ | ||
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }} | ||
KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }} | ||
run: | | ||
pytest tests/tests_deployment/ -v -s | ||
### USER-JOURNEY TESTS | ||
- uses: actions/setup-node@v4 | ||
with: | ||
working-directory: tests/tests_e2e | ||
node-version: 20 | ||
|
||
- name: Playwright Tests | ||
env: | ||
|
@@ -171,28 +172,22 @@ jobs: | |
# create environment file | ||
envsubst < .env.tpl > .env | ||
# run playwright pytest tests in headed mode with the chromium browser | ||
xvfb-run pytest --browser chromium | ||
xvfb-run pytest --browser chromium --slowmo 300 --headed | ||
- name: Save Cypress screenshots and videos | ||
- name: Save Playwright recording artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: e2e-cypress | ||
name: e2e-playwright | ||
path: | | ||
./tests/tests_e2e/cypress/screenshots/ | ||
./tests/tests_e2e/cypress/videos/ | ||
./tests/tests_e2e/playwright/videos/ | ||
- name: Deployment Pytests | ||
env: | ||
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }} | ||
KEYCLOAK_PASSWORD: ${{ env.TEST_PASSWORD }} | ||
run: | | ||
pytest tests/tests_deployment/ -v -s | ||
### CLEANUP AFTER TESTS | ||
- name: Cleanup nebari deployment | ||
if: always() | ||
# Since this is not critical for most pull requests and takes more than half of the time | ||
# in the CI, it makes sense to only run on merge to main or workflow_dispatch to speed | ||
# up feedback cycle | ||
if: github.ref_name == 'develop' || github.event_name == 'workflow_dispatch' | ||
working-directory: local-deployment | ||
run: | | ||
nebari destroy --config nebari-config.yaml --disable-prompt |
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.