Skip to content

Commit 4938962

Browse files
committed
do not use tox-gh-actions
1 parent 2472eae commit 4938962

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

.github/workflows/tox.yml

+8-13
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,14 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install tox tox-gh-actions pytest-github-actions-annotate-failures
30-
- name: Test with tox using minimal dependencies
31-
run: tox
29+
pip install tox pytest-github-actions-annotate-failures
30+
- name: Set Python version
31+
run: echo "PY_VERSION=$(echo ${PY_VERSION//./})" >> $GITHUB_ENV
3232
env:
33-
PLATFORM: ${{ matrix.platform }}
34-
WHICH: mindeps
33+
PY_VERSION: ${{ matrix.python-version }}
34+
- name: Test with tox using minimal dependencies
35+
run: tox -e ${{ env.PY_VERSION }}-mindeps
3536
- name: Clean
36-
run: tox
37-
env:
38-
PLATFORM: ${{ matrix.platform }}
39-
WHICH: clean
37+
run: tox -e clean
4038
- name: Test with tox with all dependencies
41-
run: tox
42-
env:
43-
PLATFORM: ${{ matrix.platform }}
44-
WHICH: alldeps
39+
run: tox -e ${{ env.PY_VERSION }}-alldeps

tox.ini

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
21
[tox]
32
isolated_build = True
4-
envlist = clean,py{36,37,38,39}-{mindeps,alldeps}-{linux,windows,macos},report
5-
6-
[gh-actions]
7-
python =
8-
3.6: py36-{mindeps,alldeps}
9-
3.7: py37-{mindeps,alldeps}
10-
3.8: py38-{mindeps,alldeps}
11-
3.9: py39-{mindeps,alldeps}
12-
13-
[gh-actions:env]
14-
PLATFORM =
15-
ubuntu-latest: linux
16-
macos-latest: macos
17-
windows-latest: windows
18-
WHICH =
19-
mindeps: mindeps
20-
alldeps: alldeps
21-
clean: clean
3+
envlist = clean,py{36,37,38,39}-{mindeps,alldeps},report
224

235
[pytest]
246
testpaths = adaptive

0 commit comments

Comments
 (0)