Skip to content

Commit 5a44ed4

Browse files
authored
Save test results as an artifact
1 parent 026948a commit 5a44ed4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
python -m unittest discover -s tests
3434
continue-on-error: false # Stop on failure
3535

36-
- name: Store Test Results
37-
if: always()
38-
run: echo "TESTS_PASSED=${{ job.status }}" >> $GITHUB_ENV
36+
- name: Store Test Result in Environment
37+
run: |
38+
echo "TESTS_PASSED=${{ job.status }}" >> test_result.txt
39+
40+
- name: Upload Test Result Artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: TESTS_PASSED
44+
path: test_result.txt
45+
retention-days: 1 # Keep the artifact for 1 day

0 commit comments

Comments
 (0)