Skip to content

Commit 9d915b2

Browse files
committed
Fix GitHub action for older Python versions
1 parent 233df17 commit 9d915b2

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/test.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,31 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
12+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install "tox>=3.28,<5" "tox-gh-actions>=3.2,<4"
26+
27+
- name: Run unit tests with tox
28+
run: tox
29+
30+
tests-old:
31+
name: 🧪 Tests (older Python versions)
32+
runs-on: ubuntu-22.04
33+
34+
strategy:
35+
matrix:
36+
python-version: ['3.7', '3.8']
1337

1438
steps:
1539
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)