Skip to content

Commit 9e5cb0f

Browse files
committed
Update the testing workflow
1 parent ebcf354 commit 9e5cb0f

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Tests
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
pull_request:
88
schedule:
99
- cron: "37 1 1 * *"
@@ -16,20 +16,26 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
python-version:
19-
- "3.10"
20-
- "3.12"
21-
- "3.13"
19+
- '3.10'
20+
- '3.12'
21+
- '3.13'
2222

2323
steps:
24-
- uses: actions/checkout@v4
25-
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v5
27-
with:
28-
python-version: ${{ matrix.python-version }}
29-
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip wheel setuptools tox
32-
- name: Run tox targets for ${{ matrix.python-version }}
33-
run: |
34-
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
35-
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox
24+
- uses: actions/checkout@v4
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip tox pytest-playwright
32+
33+
# Install playwright system dependencies
34+
- name: Install Playwright browsers
35+
run: |
36+
playwright install --with-deps chromium
37+
38+
- name: Run tox targets for ${{ matrix.python-version }}
39+
run: |
40+
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
41+
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox

0 commit comments

Comments
 (0)