Skip to content

Commit

Permalink
Merge pull request #2 from DanielT/coverage
Browse files Browse the repository at this point in the history
collect code coverage information for the test suite
  • Loading branch information
DanielT authored Aug 23, 2023
2 parents ae6413d + 779cf13 commit f141462
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,24 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
pip install maturin
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Build and install wheel
run: |
source <(cargo llvm-cov show-env --export-prefix)
maturin build --out dist --find-interpreter
pip install autosar-data --find-links dist
- name: Test with pytest
run: |
pytest
source <(cargo llvm-cov show-env --export-prefix)
pytest
- name: Collect test coverage data
run: |
source <(cargo llvm-cov show-env --export-prefix)
cargo llvm-cov report --lcov --output-path lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info

0 comments on commit f141462

Please sign in to comment.