Merge pull request #10 from jeertmans/dependabot/github_actions/actio… #101
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
on: [push] | |
name: Code Coverage | |
jobs: | |
test: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Build DiffeRT-core | |
uses: PyO3/maturin-action@v1 | |
with: | |
command: build | |
working-directory: differt-core | |
sccache: true | |
- name: Install Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: poetry | |
- name: Install Differt | |
run: | | |
poetry install --with test | |
- name: Run pytest and coverage | |
run: poetry run pytest --cov-report xml --cov=differt tests/ | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true |