Skip to content

Merge pull request #10 from jeertmans/dependabot/github_actions/actio… #101

Merge pull request #10 from jeertmans/dependabot/github_actions/actio…

Merge pull request #10 from jeertmans/dependabot/github_actions/actio… #101

Workflow file for this run

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