65
65
run : |
66
66
python -m pip install tox
67
67
- name : Run tests
68
- run : |
69
- python -m tox
68
+ run : python -m tox -- --cov-report xml --cov-report term
70
69
71
70
test :
72
71
needs : prepare
@@ -103,14 +102,15 @@ jobs:
103
102
- name : Isolate tests to avoid PYTHONPATH interference
104
103
run : |
105
104
# Avoid problems with import paths, see #2318, #3015:
105
+ # `mkdir` `git rm` and `git mv` are OS-independent commands
106
106
git mv setuptools/tests test_setuptools
107
107
git mv pkg_resources/tests test_pkg_resources
108
108
# Prevent local directories to take precedence over installed packages:
109
- git rm -rf _distutils_hack
110
- git rm -rf setuptools
111
- git rm -rf pkg_resources
112
- # ` git rm` and `git mv` are OS-independent commands
113
- - name : Retrieve pre-built distribution archive
109
+ mkdir src
110
+ git mv _distutils_hack src
111
+ git mv setuptools src
112
+ git mv pkg_resources src
113
+ - name : Retrieve pre-built distribution files
114
114
uses : actions/download-artifact@v2
115
115
with :
116
116
name : python-distribution-files
@@ -127,9 +127,8 @@ jobs:
127
127
run : >-
128
128
python -m tox
129
129
--installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
130
- -- --cov-report xml
130
+ -- --cov-report xml --cov-report term --cov-config .coveragerc.ci
131
131
- name : Publish coverage
132
- if : false # disabled for #2727
133
132
uses : codecov/codecov-action@v1
134
133
with :
135
134
flags : >- # Mark which lines are covered by which envs
@@ -168,14 +167,15 @@ jobs:
168
167
shell : C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
169
168
run : |
170
169
# Avoid problems with import paths, see #2318, #3015:
170
+ # `mkdir` `git rm` and `git mv` are OS-independent commands
171
171
git mv setuptools/tests test_setuptools
172
172
git mv pkg_resources/tests test_pkg_resources
173
173
# Prevent local directories to take precedence over installed packages:
174
- git rm -rf _distutils_hack
175
- git rm -rf setuptools
176
- git rm -rf pkg_resources
177
- # ` git rm` and `git mv` are OS-independent commands
178
- - name : Retrieve pre-built distribution archive
174
+ mkdir src
175
+ git mv _distutils_hack src
176
+ git mv setuptools src
177
+ git mv pkg_resources src
178
+ - name : Retrieve pre-built distribution files
179
179
uses : actions/download-artifact@v2
180
180
with :
181
181
name : python-distribution-files
@@ -185,7 +185,13 @@ jobs:
185
185
run : >-
186
186
python -m tox
187
187
--installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
188
- -- --cov-report xml
188
+ -- --cov-report xml --cov-report term --cov-config .coveragerc.ci
189
+ - name : Publish coverage
190
+ uses : codecov/codecov-action@v1
191
+ with :
192
+ flags : >- # Mark which lines are covered by which envs
193
+ cygwin
194
+ ${{ matrix.python }}
189
195
190
196
integration-test :
191
197
strategy :
@@ -224,13 +230,14 @@ jobs:
224
230
- name : Isolate tests to avoid PYTHONPATH interference
225
231
run : |
226
232
# Avoid problems with import paths, see #2318, #3015:
233
+ # `mkdir` `git rm` and `git mv` are OS-independent commands
227
234
git mv setuptools/tests test_setuptools
228
235
git mv pkg_resources/tests test_pkg_resources
229
236
# Prevent local directories to take precedence over installed packages:
230
- git rm -rf _distutils_hack
231
- git rm -rf setuptools
232
- git rm -rf pkg_resources
233
- # ` git rm` and `git mv` are OS-independent commands
237
+ mkdir src
238
+ git mv _distutils_hack src
239
+ git mv setuptools src
240
+ git mv pkg_resources src
234
241
- name : Retrieve pre-built distribution files
235
242
uses : actions/download-artifact@v2
236
243
with :
0 commit comments