Skip to content

Commit

Permalink
add JUnit-style test output & report
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverrahner committed Apr 16, 2024
1 parent bf791bb commit 3dc97a1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ jobs:
flake8 .
- name: Test with pytest
run: |
pytest
pytest --junitxml=junit/test-results.xml
- name: Dry run building the wheel
run: |
python -m build --sdist --wheel
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: 'junit/test-results.xml'
detailed_summary: true
include_passed: true
9 changes: 8 additions & 1 deletion .github/workflows/linting-for-all-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ jobs:
flake8 .
- name: Run internal tests
run: |
pytest tests/agrirouter/internal
pytest tests/agrirouter/internal --junitxml=junit/test-results.xml
- name: Dry run building the wheel
run: |
python -m build --sdist --wheel
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: 'junit/test-results.xml'
detailed_summary: true
include_passed: true

0 comments on commit 3dc97a1

Please sign in to comment.