Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,17 @@ jobs:

- name: Run Tests & Generate Reports
run: |
# Run pytest, generating both a JSON report (for the test badge)
# and an XML report (for the coverage badge)
# CHANGED: Use --junitxml (Standard XML) instead of --json-report
pytest -v \
--json-report --json-report-file=tests/report.json \
--junitxml=tests/report.xml \
--cov=pathgenerator --cov-report=xml:tests/coverage.xml

- name: Generate Badges
run: |
# 1. Create the Test Status Badge
genbadge tests -i tests/report.json -o tests/tests-badge.svg
# CHANGED: Point to report.xml (XML) instead of report.json
genbadge tests -i tests/report.xml -o tests/tests-badge.svg

# 2. Create the Coverage Badge
# Coverage badge remains the same
genbadge coverage -i tests/coverage.xml -o tests/coverage-badge.svg

- name: Commit Badges
Expand Down