Skip to content

chore(deps): bump codecov/codecov-action from 5 to 7 #28

chore(deps): bump codecov/codecov-action from 5 to 7

chore(deps): bump codecov/codecov-action from 5 to 7 #28

Workflow file for this run

name: Coverage
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
paths:
- 'src/**'
- 'tests/**'
- 'setup.py'
- 'pyproject.toml'
- '.github/workflows/coverage.yml'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'setup.py'
- 'pyproject.toml'
- '.github/workflows/coverage.yml'
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: 'pip'
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
libxml2-dev libxslt1-dev python3-dev build-essential
pip install -e ".[dev]"
- name: Run tests with coverage
run: |
pytest tests/ --tb=short
- name: Upload to Codecov
uses: codecov/codecov-action@v7
with:
files: coverage/lcov.info
flags: unittests
slug: ${{ github.repository }}
disable_search: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}