From 6eea58d2167d9fdda7a447139f5311e90f05923b Mon Sep 17 00:00:00 2001 From: Jonathan Perron Date: Sun, 26 May 2024 15:21:37 +0200 Subject: [PATCH] feat(coverage): add coverage check on PR * Update dev-requirements.txt with pytest-cov library * Update github workflow --- .github/workflows/tests.yaml | 3 +-- dev-requirements.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 81e9baf..0d84e9c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -19,5 +19,4 @@ jobs: pip install -e . - name: Test with pytest run: | - pip install pytest - pytest tests/ + pytest --cov=navitia_client --cov-report=term --cov-fail-under=80 diff --git a/dev-requirements.txt b/dev-requirements.txt index 2c430a2..0279c75 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,4 +1,5 @@ mypy<1 pre-commit<4 pytest<9 +pytest-cov<6 ruff<1