Skip to content

Commit

Permalink
chore: enforce 80% minimum test coverage in ci/cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aitorres committed Oct 24, 2021
1 parent 6fb3470 commit 6578e2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = tests.py
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests with pytest
run: pytest -sv tests.py
run: pytest --cov=. --cov-fail-under=80 -sv tests.py
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pylint==2.11.1
pytest==6.2.5
pytest-cov==3.0.0
python-telegram-bot==13.7
requests==2.26.0

0 comments on commit 6578e2a

Please sign in to comment.