Skip to content

Commit 8835e6a

Browse files
committed
fix: Restore full test matrix in CI configuration
- Add matrix strategy for all Python versions - Include all operating systems - Restore check and docs jobs - Fix PyPy configuration
1 parent c471156 commit 8835e6a

File tree

1 file changed

+58
-5
lines changed

1 file changed

+58
-5
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,46 @@ on:
77
branches: [ main, master ]
88

99
jobs:
10-
pypy38-cover:
11-
runs-on: ubuntu-22.04
10+
test:
11+
name: ${{ matrix.tox-env }} (${{ matrix.os }})
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-22.04, windows-latest, macos-latest]
17+
tox-env:
18+
- py38-cover
19+
- py38-nocov
20+
- py39-cover
21+
- py39-nocov
22+
- py310-cover
23+
- py310-nocov
24+
- py311-cover
25+
- py311-nocov
26+
- py312-cover
27+
- py312-nocov
28+
- pypy38-cover
29+
- pypy38-nocov
30+
- pypy39-cover
31+
- pypy39-nocov
32+
- pypy310-cover
33+
- pypy310-nocov
34+
1235
steps:
1336
- uses: actions/checkout@v3
1437

15-
- name: Set up PyPy
38+
- name: Set up Python
1639
uses: actions/setup-python@v4
1740
with:
18-
python-version: "pypy-3.8"
41+
python-version: |
42+
pypy-3.8
43+
pypy-3.9
44+
pypy-3.10
45+
3.8
46+
3.9
47+
3.10
48+
3.11
49+
3.12
1950
architecture: x64
2051

2152
- name: Install dependencies
@@ -25,4 +56,26 @@ jobs:
2556
python -m pip install tox tox-gh-actions
2657
2758
- name: Test with tox
28-
run: tox
59+
env:
60+
TOXENV: ${{ matrix.tox-env }}
61+
run: tox
62+
63+
check:
64+
runs-on: ubuntu-22.04
65+
steps:
66+
- uses: actions/checkout@v3
67+
- uses: actions/setup-python@v4
68+
with:
69+
python-version: "3.x"
70+
- run: pip install tox
71+
- run: tox -e check
72+
73+
docs:
74+
runs-on: ubuntu-22.04
75+
steps:
76+
- uses: actions/checkout@v3
77+
- uses: actions/setup-python@v4
78+
with:
79+
python-version: "3.x"
80+
- run: pip install tox
81+
- run: tox -e docs

0 commit comments

Comments
 (0)