Require full coverage in CI
This commit is contained in:
parent
cad80b4e38
commit
76dd413604
3 changed files with 14 additions and 2 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -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
11
Makefile
Normal 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
|
||||
|
|
@ -3,5 +3,6 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
adafruit-circuitpython-datetime
|
||||
beautifulsoup4
|
||||
coverage
|
||||
pre-commit
|
||||
requests
|
||||
|
|
|
|||
Loading…
Reference in a new issue