From 4d21dc721cc6265fc3d6810de2b7eb7660c867b1 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Sun, 12 May 2024 18:22:12 +0200 Subject: [PATCH] Use matrix strategy for functional tests workflow --- .github/workflows/functional-tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 829891c61..e1c0414a5 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -27,15 +27,13 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 mailhog: image: mailhog/mailhog - ports: [ - "1025:1025", - "8025:8025" - ] + ports: ["1025:1025", "8025:8025"] strategy: max-parallel: 4 matrix: python-version: ["3.11"] + playwright-project: ["chromium", "firefox"] steps: - uses: actions/checkout@v4 @@ -95,7 +93,7 @@ jobs: nohup python manage.py runserver & - name: Run tests working-directory: ${{ env.working-directory }} - run: npx playwright test + run: npx playwright test --project=${{ matrix.playwright-project }} - uses: actions/upload-artifact@v4 if: always() with: