Skip to content

Commit

Permalink
fix test action
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Sep 2, 2024
1 parent acdbede commit c60e4d8
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,20 @@ jobs:
run: |
set -o pipefail
set +e
set -x
export NO_CLEANUP=1
bash ./scripts/test.sh 2>&1 | tee test.out
mkdir upload
cp test.out upload/
grep -o "'/tmp/pyglossary/[^']*'" test.out | sed "s/'//g" | xargs '-I{}' cp '{}' upload
ls -l upload
ARTIFACTS=test-artifacts
mkdir $ARTIFACTS
cp test.out $ARTIFACTS
grep -o "'/tmp/pyglossary/[^']*'" test.out | sed "s/'//g" | xargs '-I{}' cp '{}' $ARTIFACTS
STATUS=$?
ls -l $ARTIFACTS
set -e
exit $STATUS
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: upload
path: upload/
name: test-artifacts-{{ github.sha }}-py${{ matrix.python-version }}
path: test-artifacts

0 comments on commit c60e4d8

Please sign in to comment.