Skip to content

Commit

Permalink
more changes to the coverage job
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Nov 8, 2024
1 parent 91a357d commit 6f972b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ jobs:
export TEST_DB_URI=mssql+pyodbc://sa:YourStrong!Passw0rd@localhost:1433/master?driver=ODBC+Driver+17+for+SQL+Server
fi
pytest --cov=recordlinker --cov-report=xml tests/unit
pytest --cov=recordlinker tests/unit
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.database }}.xml
path: coverage.xml # Save the coverage report as an artifact for each database
name: coverage-${{ matrix.database }}
path: .coverage # Save the coverage data file as an artifact for each database

coverage:
runs-on: ubuntu-latest
Expand All @@ -96,15 +96,15 @@ jobs:
uses: actions/download-artifact@v4
with:
path: coverage_artifacts
pattern: coverage-*.xml
pattern: coverage-*
merge-multiple: true

- name: Combine coverage reports
run: |
ls -l coverage_artifacts
pip install coverage
cd coverage_artifacts
coverage combine coverage-*.xml
coverage combine coverage-*
coverage xml -o combined_coverage.xml
- name: Upload combined coverage to Codecov
Expand Down

0 comments on commit 6f972b3

Please sign in to comment.