1717jobs :
1818 test :
1919 # Should match JOB_NAME below
20- name : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.qt_library.name }} ${{ matrix. python.name }} ${{ matrix.arch.name }}
20+ name : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
2121 runs-on : ${{ matrix.os.runs-on }}
2222 container : ${{ matrix.os.container[matrix.python.docker] }}
2323 strategy :
@@ -107,7 +107,7 @@ jobs:
107107 matrix : x86
108108 env :
109109 # Should match name above
110- JOB_NAME : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.qt_library.name }} ${{ matrix. python.name }} ${{ matrix.arch.name }}
110+ JOB_NAME : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
111111 steps :
112112 - uses : actions/checkout@v2
113113 with :
@@ -127,7 +127,7 @@ jobs:
127127 - name : Install
128128 run : |
129129 pip install --upgrade pip setuptools wheel
130- pip install --upgrade tox coveralls
130+ pip install --upgrade tox
131131132132 - name : Test
133133 run : |
@@ -136,20 +136,120 @@ jobs:
136136 if : matrix.task.coverage
137137 run : |
138138 mkdir coverage_reports
139- cp .coverage "coverage_reports/coverage.${{ env.JOB_NAME }}"
139+ cp .coverage "coverage_reports/. coverage.${{ env.JOB_NAME }}"
140140 cp coverage.xml "coverage_reports/coverage.${{ env.JOB_NAME }}.xml"
141- # TODO: deal with the classic secrets and forked PRs issue...
142- # coveralls
143- - name : Publish Coverage
141+ - name : Upload Coverage
144142 if : matrix.task.coverage
145143 uses : actions/upload-artifact@v2
146144 with :
147145 name : coverage
148146 path : coverage_reports/*
147+ check :
148+ # Should match JOB_NAME below
149+ name : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
150+ runs-on : ${{ matrix.os.runs-on }}
151+ container : ${{ matrix.os.container[matrix.python.docker] }}
152+ strategy :
153+ fail-fast : false
154+ matrix :
155+ task :
156+ - name : flake8
157+ tox : flake8
158+ continue_on_error : true
159+ - name : Docs
160+ tox : docs
161+ os :
162+ - name : Linux
163+ runs-on : ubuntu-latest
164+ python_platform : linux
165+ matrix : linux
166+ container :
167+ 3.8 : docker://python:3.8-buster
168+ python :
169+ - name : CPython 3.8
170+ tox : py38
171+ action : 3.8
172+ docker : 3.8
173+ implementation : cpython
174+ arch :
175+ - name : x64
176+ action : x64
177+ matrix : x64
178+ env :
179+ # Should match name above
180+ JOB_NAME : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
181+ steps :
182+ - uses : actions/checkout@v2
183+ with :
184+ fetch-depth : 0
185+ - name : Install
186+ run : |
187+ pip install --upgrade pip setuptools wheel
188+ pip install --upgrade tox
189+ 190+ - name : Test
191+ continue-on-error : ${{ matrix.task.continue_on_error }}
192+ run : |
193+ tox -vv -e ${{ matrix.task.tox }}
194+ coverage :
195+ # Should match JOB_NAME below
196+ name : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
197+ runs-on : ${{ matrix.os.runs-on }}
198+ needs :
199+ - test
200+ container : ${{ matrix.os.container[matrix.python.docker] }}
201+ strategy :
202+ fail-fast : false
203+ matrix :
204+ task :
205+ - name : Coverage
206+ tox : combined-coverage
207+ download_coverage : true
208+ os :
209+ - name : Linux
210+ runs-on : ubuntu-latest
211+ python_platform : linux
212+ matrix : linux
213+ container :
214+ 3.8 : docker://python:3.8-buster
215+ python :
216+ - name : CPython 3.8
217+ tox : py38
218+ action : 3.8
219+ docker : 3.8
220+ implementation : cpython
221+ arch :
222+ - name : x64
223+ action : x64
224+ matrix : x64
225+ env :
226+ # Should match name above
227+ JOB_NAME : ${{ matrix.task.name }} - ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.arch.name }}
228+ steps :
229+ - uses : actions/checkout@v2
230+ with :
231+ fetch-depth : 0
232+ - name : Install
233+ run : |
234+ pip install --upgrade pip setuptools wheel
235+ pip install --upgrade tox
236+ 237+ - name : Download Coverage
238+ if : matrix.task.download_coverage
239+ uses : actions/download-artifact@v2
240+ with :
241+ name : coverage
242+ path : coverage_reports
243+ - name : Test
244+ continue-on-error : ${{ matrix.task.continue_on_error }}
245+ run : |
246+ tox -vv -e ${{ matrix.task.tox }}
149247 all :
150248 name : All
151249 runs-on : ubuntu-latest
152250 needs :
251+ - check
252+ - coverage
153253 - test
154254 steps :
155255 - name : This
0 commit comments