diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ba664284..cb5efeb20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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/ \ No newline at end of file