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 454863f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,20 @@ jobs:
- name: Remove test cache
run: rm -rf /home/runner/.cache/pyglossary/test || true
- name: Run tests
run: bash ./scripts/test.sh
run: |
set -o pipefail
bash ./scripts/test.sh 2>&1 | tee test.out
set +o pipefail
- name: Extract failed test artifacts
if: always()
run: |
mkdir -p upload
grep -o "'/tmp/pyglossary/[^']*'" test.out | sed "s/'//g" | xargs '-I{}' cp '{}' upload
ls -l upload
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: upload
path: upload/

0 comments on commit 454863f

Please sign in to comment.