Skip to content

Commit f0bb8d6

Browse files
authored
ci: fix by adding limit (#84)
* ci: fix by adding limit * ci: expand matrix * Update test.yml * Update test.yml
1 parent 2ce469f commit f0bb8d6

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ jobs:
1717
- '3.8'
1818
- '3.9'
1919
- '3.10'
20-
include:
21-
- os: ubuntu-22.04
22-
python-version: '3.7'
23-
- os: windows-latest
24-
python-version: '3.7'
25-
20+
- '3.11'
21+
- '3.12'
2622
runs-on: ${{ matrix.os }}
2723

2824
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}
@@ -44,15 +40,15 @@ jobs:
4440

4541
- name: Run tests with PyTest 4
4642
run: tox
47-
if: ${{ matrix.python-version != '3.10' }}
43+
if: "!startsWith(matrix.python-version, '3.1')"
4844
env:
4945
PLATFORM: ${{ matrix.os }}
5046
PYTEST_MAJOR_VERSION: 4
5147
PYTEST_PLUGINS: pytest_github_actions_annotate_failures
5248

5349
- name: Run tests with PyTest 5
5450
run: tox
55-
if: ${{ matrix.python-version != '3.10' }}
51+
if: "!startsWith(matrix.python-version, '3.1')"
5652
env:
5753
PLATFORM: ${{ matrix.os }}
5854
PYTEST_MAJOR_VERSION: 5

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[tox]
22
envlist =
3-
py27-pytest4-{linux,windows}
4-
py{36,37,38,39}-pytest{4,5,6,7}-{linux,windows}
5-
py{310}-pytest{6,7}-{linux,windows}
3+
py{37,38,39}-pytest{4,5,6,7}-{linux,windows}
4+
py{310,311,312}-pytest{6,7}-{linux,windows}
65
pkg
76

87
[gh-actions]
@@ -11,6 +10,8 @@ python =
1110
3.8: py38
1211
3.9: py39
1312
3.10: py310
13+
3.11: py311
14+
3.12: py312
1415

1516
[gh-actions:env]
1617
PLATFORM =
@@ -29,7 +30,7 @@ deps =
2930
pytest4: pytest>=4.0.0,<5.0.0
3031
pytest5: pytest>=5.0.0,<6.0.0
3132
pytest6: pytest>=6.0.0,<7.0.0
32-
pytest7: pytest>=7.0.0,<8.0.0
33+
pytest7: pytest>=7.0.0,<7.4.0
3334

3435
commands = {envpython} -m pytest
3536

0 commit comments

Comments
 (0)