@@ -22,27 +22,25 @@ jobs:
2222 runs-on : ubuntu-latest
2323 python :
2424 - name : CPython 3.9
25- tox : py39
2625 action : 3.9
2726 task :
2827 - name : Build
29- tox : build
28+ nox : build
3029
3130 steps :
3231 - uses : actions/checkout@v3
3332
3433 - name : Set up ${{ matrix.python.name }}
35- uses : actions/setup-python@v3
34+ uses : actions/setup-python@v4
3635 with :
3736 python-version : ${{ matrix.python.action }}
3837
3938 - name : Install dependencies
40- run : python -m pip install --upgrade pip tox
39+ run : python -m pip install --upgrade pip nox
4140
4241 - uses : twisted/python-info-action@v1
4342
44- - name : Tox
45- run : tox -c tox.ini -e ${{ matrix.task.tox }}
43+ - run : nox -e ${{ matrix.task.nox }}
4644
4745 - name : Publish
4846 uses : actions/upload-artifact@v3
@@ -60,29 +58,22 @@ jobs:
6058 matrix :
6159 python :
6260 - name : CPython 3.7
63- tox : py37
6461 action : 3.7
6562 - name : CPython 3.8
66- tox : py38
6763 action : 3.8
6864 - name : CPython 3.9
69- tox : py39
7065 action : 3.9
7166 - name : CPython 3.10
72- tox : py310
7367 action : ' 3.10'
7468 - name : CPython 3.11
75- tox : py311
7669 action : ' 3.11.0-beta - 3.11'
7770 - name : PyPy 3.7
78- tox : pypy37
79- action : pypy-3.7
71+ action : pypy3.7
8072 - name : PyPy 3.8
81- tox : pypy38
82- action : pypy-3.8
73+ action : pypy3.8
8374 task :
8475 - name : Test
85- tox : tests
76+ nox : tests
8677
8778 steps :
8879 - uses : actions/checkout@v3
@@ -94,17 +85,16 @@ jobs:
9485 path : dist/
9586
9687 - name : Set up ${{ matrix.python.name }}
97- uses : actions/setup-python@v3
88+ uses : actions/setup-python@v4
9889 with :
9990 python-version : ${{ matrix.python.action }}
10091
10192 - name : Install dependencies
102- run : python -m pip install --upgrade pip tox codecov coverage[toml]
93+ run : python -m pip install --upgrade pip nox codecov coverage[toml]
10394
10495 - uses : twisted/python-info-action@v1
10596
106- - name : Tox
107- run : tox -c tox.ini --installpkg dist/*.whl -e ${{ matrix.python.tox }}-tests
97+ - run : nox --python ${{ matrix.python.action }} -e ${{ matrix.task.nox }} -- --use-wheel dist/*.whl
10898
10999 - name : Codecov
110100 run : |
@@ -121,11 +111,10 @@ jobs:
121111 matrix :
122112 python :
123113 - name : CPython 3.9
124- tox : py39
125114 action : ' 3.9'
126115 task :
127116 - name : Test
128- tox : tests
117+ nox : tests
129118
130119 steps :
131120 - uses : actions/checkout@v3
@@ -137,17 +126,16 @@ jobs:
137126 path : dist/
138127
139128 - name : Set up ${{ matrix.python.name }}
140- uses : actions/setup-python@v3
129+ uses : actions/setup-python@v4
141130 with :
142131 python-version : ${{ matrix.python.action }}
143132
144133 - name : Install dependencies
145- run : python -m pip install --upgrade pip tox codecov coverage[toml]
134+ run : python -m pip install --upgrade pip nox codecov coverage[toml]
146135
147136 - uses : twisted/python-info-action@v1
148137
149- - name : Tox
150- run : tox -c tox.ini --installpkg dist/*.whl -e ${{ matrix.python.tox }}-tests
138+ - run : nox --python ${{ matrix.python.action }} -e ${{ matrix.task.nox }} -- --use-wheel dist/*.whl
151139
152140 - name : Codecov
153141 run : |
@@ -165,17 +153,16 @@ jobs:
165153 # Using second most recent minor release for whatever little
166154 # increase in stability over using the latest minor.
167155 - name : CPython 3.9
168- tox : py39
169156 python-version : ' 3.9'
170157 task :
171158 - name : Check Newsfragment
172- tox : check-newsfragment
159+ nox : check_newsfragment
173160 run-if : ${{ github.head_ref != 'pre-commit-ci-update-config' }}
174161 - name : Check package manifest
175- tox : check-manifest
162+ nox : check_manifest
176163 run-if : true
177164 - name : Check mypy
178- tox : typecheck
165+ nox : typecheck
179166 run-if : true
180167
181168 steps :
@@ -190,18 +177,18 @@ jobs:
190177 path : dist/
191178
192179 - name : Set up ${{ matrix.python.name }}
193- uses : actions/setup-python@v3
180+ uses : actions/setup-python@v4
194181 with :
195182 python-version : ${{ matrix.python.python-version }}
196183
197184 - name : Install dependencies
198- run : python -m pip install --upgrade pip tox
185+ run : python -m pip install --upgrade pip nox
199186
200187 - uses : twisted/python-info-action@v1
201188
202- - name : Tox
189+ - run : nox -e ${{ matrix.task.nox }}
203190 if : ${{ matrix.task.run-if }}
204- run : tox -c tox.ini -e ${{ matrix.task.tox }}
191+
205192
206193 pypi-publish :
207194 # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
@@ -222,7 +209,7 @@ jobs:
222209 path : dist/
223210
224211 - name : Set up Python
225- uses : actions/setup-python@v3
212+ uses : actions/setup-python@v4
226213 with :
227214 python-version : 3.9
228215
0 commit comments