File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -204,14 +204,20 @@ jobs:
204204 set -eux
205205 py="${{ matrix.python }}";
206206 if [[ $py =~ pypy ]]; then # PyPy
207- py_test="pypy ${py:5:1 }"; # Add "pypy" prefix, select major version
207+ py_test="${py}";
208208 else # CPython
209209 py_test="py${py/./}"; # Add "py" prefix, remove "."
210210 fi;
211211 env_test="test-${py_test}";
212212 echo "Test environment: ${env_test}";
213- ln -s ".tox/${env_test}" testenv; # Fixed location for upload step below
214- tox -e "${env_test}";
213+ tar cvzf pytest-logs.tgz ".tox/${env_test}/log";
214+
215+ - name : Upload pytest log artifact
216+ if : failure()
217+ uses : actions/upload-artifact@v1
218+ with :
219+ name : pytest-logs
220+ path : pytest-logs.tgz
215221
216222 # Use the latest supported Python version for combining coverage to
217223 # prevent parsing errors in older versions when looking at modern code.
You can’t perform that action at this time.
0 commit comments