@@ -27,7 +27,19 @@ concurrency:
2727permissions : {}
2828
2929jobs :
30+ package :
31+ runs-on : ubuntu-latest
32+ steps :
33+ - uses : actions/checkout@v4
34+ with :
35+ fetch-depth : 0
36+ persist-credentials : false
37+ - name : Build and Check Package
38+ 39+
3040 build :
41+ needs : [package]
42+
3143 runs-on : ${{ matrix.os }}
3244 timeout-minutes : 45
3345 permissions :
5870 " macos-py310" ,
5971 " macos-py312" ,
6072
61- " docs" ,
6273 " doctesting" ,
6374 " plugins" ,
6475 ]
@@ -145,28 +156,30 @@ jobs:
145156 tox_env : " py312-xdist"
146157
147158 - name : " plugins"
148- python : " 3.9 "
159+ python : " 3.12 "
149160 os : ubuntu-latest
150161 tox_env : " plugins"
151162
152- - name : " docs"
153- python : " 3.8"
154- os : ubuntu-latest
155- tox_env : " docs"
156163 - name : " doctesting"
157164 python : " 3.8"
158165 os : ubuntu-latest
159166 tox_env : " doctesting"
160167 use_coverage : true
161168
162169 steps :
163- - uses : actions/checkout@v3
170+ - uses : actions/checkout@v4
164171 with :
165172 fetch-depth : 0
166173 persist-credentials : false
167174
175+ - name : Download Package
176+ uses : actions/download-artifact@v3
177+ with :
178+ name : Packages
179+ path : dist
180+
168181 - name : Set up Python ${{ matrix.python }}
169- uses : actions/setup-python@v4
182+ uses : actions/setup-python@v5
170183 with :
171184 python-version : ${{ matrix.python }}
172185 check-latest : ${{ endsWith(matrix.python, '-dev') }}
@@ -178,11 +191,13 @@ jobs:
178191
179192 - name : Test without coverage
180193 if : " ! matrix.use_coverage"
181- run : " tox -e ${{ matrix.tox_env }}"
194+ shell : bash
195+ run : tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz`
182196
183197 - name : Test with coverage
184198 if : " matrix.use_coverage"
185- run : " tox -e ${{ matrix.tox_env }}-coverage"
199+ shell : bash
200+ run : tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz`
186201
187202 - name : Generate coverage report
188203 if : " matrix.use_coverage"
@@ -196,10 +211,3 @@ jobs:
196211 fail_ci_if_error : true
197212 files : ./coverage.xml
198213 verbose : true
199-
200- check-package :
201- runs-on : ubuntu-latest
202- steps :
203- - uses : actions/checkout@v3
204- - name : Build and Check Package
205-
0 commit comments