Skip to content

Commit 0937bba

Browse files
committed
Fix test workflow
1 parent e567b29 commit 0937bba

File tree

2 files changed

+33
-10
lines changed

2 files changed

+33
-10
lines changed

.github/workflows/test.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
11+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.9', 'pypy3.10']
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -21,7 +21,30 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install "tox>=3.28,<5" "tox-gh-actions>=2.12,<4"
24+
pip install "tox>=4.24,<5" "tox-gh-actions>=3.2,<4"
2525
2626
- name: Run unit tests with tox
2727
run: tox
28+
29+
tests-old:
30+
runs-on: ubuntu-22.04
31+
32+
strategy:
33+
matrix:
34+
python-version: ['3.6', '3.7', '3.8']
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Set up Python ${{ matrix.python-version }}
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: ${{ matrix.python-version }}
43+
44+
- name: Install dependencies
45+
run: |
46+
python -m pip install --upgrade pip
47+
pip install "tox>=3.28,<5" "tox-gh-actions>=2.12,<4"
48+
49+
- name: Run unit tests with tox
50+
run: tox

tox.ini

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ python =
1919

2020
[testenv:black]
2121
basepython = python3.12
22-
deps = black==24.8.0
22+
deps = black==24.10.0
2323
commands =
24-
black src tests setup.py -t py311 --check
24+
black src tests setup.py -t py312 --check
2525

2626
[testenv:flake8]
2727
basepython = python3.12
@@ -32,7 +32,7 @@ commands =
3232
[testenv:mypy]
3333
basepython = python3.12
3434
deps =
35-
mypy>=1.11,<2
35+
mypy>=1.14,<2
3636
pytest>=8.3,<9
3737
commands =
3838
mypy src tests
@@ -47,19 +47,19 @@ commands =
4747

4848
[testenv:manifest]
4949
basepython = python3.12
50-
deps = check-manifest>=0.49,<1
50+
deps = check-manifest>=0.50,<1
5151
commands =
5252
check-manifest -v
5353

5454
[testenv]
5555
deps =
5656
pytest>=6.2,<9
57-
pytest-asyncio>=0.16,<0.24
58-
pytest-benchmark>=3.4,<5
59-
pytest-cov>=4,<6
57+
pytest-asyncio>=0.16,<1
58+
pytest-benchmark>=3.4,<6
59+
pytest-cov>=4,<7
6060
pytest-describe>=2,<3
6161
pytest-timeout>=2,<3
62-
py3{6,7,8,9}, pypy39: typing-extensions>=4,<5
62+
py3{6,7,8,9}, pypy39: typing-extensions>=4.2,<5
6363
commands =
6464
# to also run the time-consuming tests: tox -e py311 -- --run-slow
6565
# to run the benchmarks: tox -e py311 -- -k benchmarks --benchmark-enable

0 commit comments

Comments
 (0)