Skip to content

Commit

Permalink
fix paths to all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Jul 26, 2023
1 parent 4fc1d85 commit 0a2e7a7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/kubernetes_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
paths:
- ".github/workflows/kubernetes_test.yaml"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand All @@ -19,8 +17,6 @@ on:
paths:
- ".github/workflows/kubernetes_test.yaml"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand Down Expand Up @@ -148,14 +144,14 @@ jobs:
env:
CYPRESS_BASE_URL: https://github-actions.nebari.dev/
with:
working-directory: tests_e2e
working-directory: tests/tests_e2e

- name: Playwright Tests
env:
KEYCLOAK_USERNAME: ${{ env.CYPRESS_EXAMPLE_USER_NAME }}
KEYCLOAK_PASSWORD: ${{ env.CYPRESS_EXAMPLE_USER_PASSWORD }}
NEBARI_FULL_URL: https://github-actions.nebari.dev/
working-directory: tests_e2e/playwright
working-directory: tests/tests_e2e/playwright
run: |
# create environment file
envsubst < .env.tpl > .env
Expand All @@ -168,15 +164,15 @@ jobs:
with:
name: e2e-cypress
path: |
./tests_e2e/cypress/screenshots/
./tests_e2e/cypress/videos/
./tests_e2e/playwright/videos/
./tests/tests_e2e/cypress/screenshots/
./tests/tests_e2e/cypress/videos/
./tests/tests_e2e/playwright/videos/
- name: Deployment Pytests
run: |
export KEYCLOAK_USERNAME=${CYPRESS_EXAMPLE_USER_NAME}
export KEYCLOAK_PASSWORD=${CYPRESS_EXAMPLE_USER_PASSWORD}
pytest tests_deployment/ -v -s
pytest tests/tests_deployment/ -v -s
- name: JupyterHub Notebook Tests
# run jhub-client after pytest since jhubctl can cleanup
Expand All @@ -190,7 +186,7 @@ jobs:
--validate --no-verify-ssl \
--kernel python3 \
--stop-server \
--notebook tests_deployment/assets/notebook/simple.ipynb \
--notebook tests/tests_deployment/assets/notebook/simple.ipynb \
### CLEANUP AFTER TESTS
- name: Cleanup nebari deployment
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
- ".github/failed-workflow-issue-templates/test-provider.md"
- ".github/actions/publish-from-template"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand All @@ -23,8 +21,6 @@ on:
paths:
- ".github/workflows/test-provider.yaml"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
paths:
- ".github/workflows/test.yaml"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/cypress/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand All @@ -19,8 +17,6 @@ on:
paths:
- ".github/workflows/test.yaml"
- "tests/**"
- "tests_deployment/**"
- "tests_e2e/cypress/**"
- "scripts/**"
- "src/**"
- "pyproject.toml"
Expand Down Expand Up @@ -56,4 +52,4 @@ jobs:
- name: Test Nebari
run: |
pytest --version
pytest --ignore=tests_deployment --ignore=tests_e2e/playwright
pytest --ignore=tests/tests_deployment --ignore=tests/tests_e2e/playwright --ignore=tests/tests_integration
2 changes: 1 addition & 1 deletion .github/workflows/test_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
- name: Integration Tests
run: |
pytest --version
pytest tests_integration/ -vvv -s -m ${{ matrix.provider }}
pytest tests/tests_integration/ -vvv -s -m ${{ matrix.provider }}

0 comments on commit 0a2e7a7

Please sign in to comment.