From bcde20439f33123a5e1dc9b54138299c801339f9 Mon Sep 17 00:00:00 2001 From: Nikita Karetnikov Date: Mon, 15 Apr 2024 09:06:33 +0200 Subject: [PATCH] Run integration tests as separate jobs --- .github/workflows/tests.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 889d1b881..ef494a7b5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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} @@ -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 @@ -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() }}