Skip to content

Commit

Permalink
Merge pull request #90 from bowen-xu/test-run-compare
Browse files Browse the repository at this point in the history
[WIP] testing workflows
  • Loading branch information
maxeeem authored Jan 24, 2024
2 parents 07c4d73 + e0be2a0 commit 9fdefb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Test with unittest
continue-on-error: true
run: |
python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v > output-dev.txt
python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v |& tee output-dev.txt
- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-app-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Test with unittest
continue-on-error: true
run: |
python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v > output-pr.txt
python -m unittest discover Tests/test_NAL/ -p "test_*.py" -v |& tee output-pr.txt
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v3.0.0
Expand All @@ -48,7 +48,7 @@ jobs:

- name: Compare test results
run: |
diff -u ./test-report/output-dev.txt output-pr.txt | diff2html -i stdin -F test-diff.html
diff -u output-dev.txt output-pr.txt | diff2html -i stdin -F test-diff.html
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 9fdefb8

Please sign in to comment.