Skip to content

Commit ef5819c

Browse files
committed
Try to clean up test workflow.
1 parent 02075c6 commit ef5819c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)