Update #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cov | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
cov_py: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Measure Python coverage | |
run: | | |
python3 -m pip install -U pip | |
pip install pipenv | |
# Use development build | |
pipenv install -e .[dev] | |
pipenv run pytest --cov-report=xml | |
- uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: python | |
cov_rs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update | |
- uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-tarpaulin | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Measure Rust coverage | |
run: | | |
cargo tarpaulin --out Xml | |
- uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: rust |