Require full coverage in CI

This commit is contained in:
Jeff Epler 2021-03-06 21:22:06 -06:00
parent cad80b4e38
commit 76dd413604
3 changed files with 14 additions and 2 deletions

View file

@ -36,10 +36,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: python -mpip install -r requirements.txt
run: python -mpip install -r requirements-dev.txt
- name: Test
run: python -munittest
run: python -mcoverage run --branch -m unittest && python -mcoverage report --fail-under=100
pre-commit:
runs-on: ubuntu-20.04

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
.PHONY: coverage
coverage:
python3 -mcoverage run --branch -m unittest
python3 -mcoverage html
python3 -mcoverage annotate
python3 -mcoverage report --fail-under=100
# Copyright (C) 2021 Jeff Epler <jepler@gmail.com>
# SPDX-FileCopyrightText: 2021 Jeff Epler
#
# SPDX-License-Identifier: GPL-3.0-or-later

View file

@ -3,5 +3,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later
adafruit-circuitpython-datetime
beautifulsoup4
coverage
pre-commit
requests