Skip to content

Commit

Permalink
Run integration tests as separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Apr 15, 2024
1 parent 3c4547b commit bcde204
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ jobs:
integration-test-conda-store-server:
name: "integration-test conda-store-server"
runs-on: ubuntu-latest
strategy:
matrix:
test-type: ["playwright", "integration", "user-journey"]
defaults:
run:
shell: bash -el {0}
Expand Down Expand Up @@ -114,10 +117,11 @@ jobs:
run: |
playwright install
pytest --video on ../tests/test_playwright.py
if: matrix.test-type == 'playwright'

- name: "Upload test results 📤"
uses: actions/upload-artifact@v4
if: ${{ always() }}
if: ${{ always() }} && matrix.test-type == 'playwright'
with:
name: playwright-tests
path: conda-store-server/test-results
Expand All @@ -126,10 +130,12 @@ jobs:
run: |
export PYTHONPATH=$PYTHONPATH:$PWD
pytest ../tests/test_api.py ../tests/test_metrics.py
if: matrix.test-type == 'integration'

- name: "Run user journey tests ✅"
run: |
pytest -m "user_journey"
if: matrix.test-type == 'user-journey'

- name: "Get Docker logs 🔍"
if: ${{ failure() }}
Expand Down

0 comments on commit bcde204

Please sign in to comment.