Skip to content

Commit 79a6bc1

Browse files
committed
Simplify CI configuration
Using tox environment 'py' means to use whatever Python it finds on PATH.
1 parent eef3c59 commit 79a6bc1

File tree

1 file changed

+3
-57
lines changed

1 file changed

+3
-57
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -31,62 +31,8 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
name: [
35-
"windows-py38",
36-
"windows-py39",
37-
"windows-py310",
38-
"windows-py311",
39-
"windows-py312",
40-
41-
"ubuntu-py38",
42-
"ubuntu-py39",
43-
"ubuntu-py310",
44-
"ubuntu-py311",
45-
"ubuntu-py312",
46-
]
47-
48-
include:
49-
- name: "windows-py38"
50-
python: "3.8"
51-
os: windows-latest
52-
tox_env: "py38"
53-
- name: "windows-py39"
54-
python: "3.9"
55-
os: windows-latest
56-
tox_env: "py39"
57-
- name: "windows-py310"
58-
python: "3.10"
59-
os: windows-latest
60-
tox_env: "py310"
61-
- name: "windows-py311"
62-
python: "3.11"
63-
os: windows-latest
64-
tox_env: "py311"
65-
- name: "windows-py312"
66-
python: "3.12"
67-
os: windows-latest
68-
tox_env: "py312"
69-
70-
- name: "ubuntu-py38"
71-
python: "3.8"
72-
os: ubuntu-latest
73-
tox_env: "py38"
74-
- name: "ubuntu-py39"
75-
python: "3.9"
76-
os: ubuntu-latest
77-
tox_env: "py39"
78-
- name: "ubuntu-py310"
79-
python: "3.10"
80-
os: ubuntu-latest
81-
tox_env: "py310"
82-
- name: "ubuntu-py311"
83-
python: "3.11"
84-
os: ubuntu-latest
85-
tox_env: "py311"
86-
- name: "ubuntu-py312"
87-
python: "3.12"
88-
os: ubuntu-latest
89-
tox_env: "py312"
34+
os: ["ubuntu-latest", "windows-latest"]
35+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
9036

9137
steps:
9238
- uses: actions/checkout@v3
@@ -110,4 +56,4 @@ jobs:
11056
- name: Test
11157
shell: bash
11258
run: |
113-
tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
59+
tox run -e py --installpkg `find dist/*.tar.gz`

0 commit comments

Comments
 (0)