Skip to content

Merge pull request #239 from whitkirkchurch/renovate/codecov-codecov-… #717

Merge pull request #239 from whitkirkchurch/renovate/codecov-codecov-…

Merge pull request #239 from whitkirkchurch/renovate/codecov-codecov-… #717

Workflow file for this run

name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Run pre-commit
uses: pre-commit/action@v3.0.1
- name: Run tests
run: poetry run coverage run -m pytest
- name: Process coverage
run: poetry run coverage xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}