- etape check coverage threshold dans le workflow GitHub Actions - section [report] fail_under=90 dans .coveragerc - badges tests CI et coverage dans le README - mention du seuil dans la section tests du README
34 lines
746 B
YAML
34 lines
746 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, master]
|
|
pull_request:
|
|
branches: [develop]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-dev.txt
|
|
|
|
- name: Run tests
|
|
run: mamba spec/ --enable-coverage --format=documentation
|
|
|
|
- name: Check coverage threshold
|
|
run: coverage report --fail-under=90
|