Merge pull request #339 from herrboyer/coverage

Measure test coverage
This commit is contained in:
Son Nguyen Kim 2020-12-05 18:26:22 +01:00 committed by GitHub
commit 82f3751350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 609 additions and 549 deletions

View file

@ -40,6 +40,12 @@ jobs:
run: |
pytest
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: htmlcov
- name: Publish to Docker Registry
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/build-push-action@v1

4
.gitignore vendored
View file

@ -12,4 +12,6 @@ static/upload
adhoc_*
adhoc.py
venv/
.venv
.venv
.coverage
htmlcov

1139
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -80,7 +80,16 @@ py3-validate-email = "^0.2.10"
pytest = "^6.1.0"
black = "^20.8b1"
pre-commit = "^2.7.1"
pytest-cov = "^2.10.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
addopts = """
--cov=.
--cov-report=term:skip-covered
--cov-report=html:htmlcov
--cov-fail-under=60
"""