Skip to content

Commit

Permalink
github test: upload failed test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Sep 2, 2024
1 parent 4aa4f09 commit deffd17
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ jobs:
- name: Remove test cache
run: rm -rf /home/runner/.cache/pyglossary/test || true
- name: Run tests
run: bash ./scripts/test.sh
run: bash ./scripts/test.sh 2>&1 | tee test.out
- name: Extract failed test artifacts
run: |
mkdir -p upload
grep -o "'/tmp/pyglossary/[^']*'" test.out | sed "s/'//g" | xargs '-I{}' cp '{}' upload
ls -l upload
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: upload
path: upload/

0 comments on commit deffd17

Please sign in to comment.