Skip to content

Commit

Permalink
. e Added reporting to python action
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Nov 5, 2024
1 parent cfcd5f7 commit b9a3b43
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ jobs:
run: |
cd ApprovalTests/ApprovalTests.cpp
cd build
python3 -m unittest discover -s tests --verbose
chmod +x run_tests.sh
./run_tests.sh
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/build/test-reports/*.xml'
detailed_summary: true

- name: Test doc/sphinx with pytest
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ __pycache__/
*.sqlite3
/doc/_build/
venv
test-reports/
3 changes: 2 additions & 1 deletion build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ GitPython
approvaltests==0.8.0
mypy
pyyaml
types-PyYAML
types-PyYAML
pytest
1 change: 1 addition & 0 deletions build/run_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python -m pytest --junitxml=test-reports/report.xml
3 changes: 3 additions & 0 deletions build/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

sh -c "$(cat run_tests.bat)"

0 comments on commit b9a3b43

Please sign in to comment.