diff --git a/.github/workflows/devRun.yml b/.github/workflows/devRun.yml index 8e7c3031..3dcb2a21 100644 --- a/.github/workflows/devRun.yml +++ b/.github/workflows/devRun.yml @@ -8,6 +8,8 @@ jobs: merge_test: timeout-minutes: 15 runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.51.0-jammy steps: - uses: actions/checkout@v4 - name: Set up Python @@ -22,10 +24,6 @@ jobs: run: | uv venv uv sync --all-extras --dev - - name: Install Playwright Browsers - run: | - PLAYWRIGHT_VERSION=$(grep -E '^playwright = "[^"]*"' pyproject.toml | sed -E 's/playwright = "([^"]*)".*$/\1/') - npx playwright@$PLAYWRIGHT_VERSION install --with-deps - name: Test with pytest run: xvfb-run .venv/bin/python -m pytest -m devRun --base-url ${{ vars.BASE_URL }} - name: Auto-assign reviewers diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 89fe0a96..e15c780d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -31,6 +31,8 @@ jobs: nightly-test: needs: setup-matrix runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.51.0-jammy strategy: fail-fast: false matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }} @@ -48,10 +50,6 @@ jobs: run: | uv venv uv sync --all-extras --dev - - name: Install Playwright Browsers - run: | - PLAYWRIGHT_VERSION=$(grep -E '^playwright = "[^"]*"' pyproject.toml | sed -E 's/playwright = "([^"]*)".*$/\1/') - npx playwright@$PLAYWRIGHT_VERSION install --with-deps - name: Run Tests run: | xvfb-run .venv/bin/python -m pytest ${{ github.event.inputs.pytest_command || '-m "not devRun"' }} \ diff --git a/pyproject.toml b/pyproject.toml index 90352e1d..c4a1ae59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ addopts = [ "tms:https://{}", "-ra", "--color=yes", - "--browser-channel=chrome", + "--browser=chromium", "--headed", "--video=retain-on-failure", "--tracing=retain-on-failure"