Skip to content

chore: lower coverage failure threshold from 100% to 10% #8

chore: lower coverage failure threshold from 100% to 10%

chore: lower coverage failure threshold from 100% to 10% #8

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 \
--cov=src \
--cov-report=term-missing \
--cov-report=lcov:coverage/lcov.info \
--cov-fail-under=100
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
flags: unittests
slug: ${{ github.repository }}
disable_search: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}