coverage
This commit is contained in:
parent
7420528992
commit
af23c4697d
3 changed files with 44 additions and 10 deletions
17
.github/workflows/pytest.yml
vendored
17
.github/workflows/pytest.yml
vendored
|
@ -19,12 +19,13 @@ jobs:
|
|||
uses: abatilo/actions-poetry@v2.0.0
|
||||
with:
|
||||
poetry-version: ${{ matrix.poetry-version }}
|
||||
- name: poetry install
|
||||
- name: Install dependencies
|
||||
run: poetry install
|
||||
- name: poetry run pytest and coverage
|
||||
run: poetry run pytest --cov .
|
||||
- name: Coveralls
|
||||
uses: coverallsapp/github-action@1.1.3
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
path-to-lcov: .coverage
|
||||
- name: Pytest and Coverage
|
||||
run: |
|
||||
poetry run coverage run -m --source=stacosys pytest tests
|
||||
poetry run coverage report
|
||||
- name: Send report to Coveralls
|
||||
run: poetry run coveralls
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
|
|
35
poetry.lock
generated
35
poetry.lock
generated
|
@ -118,13 +118,37 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
|
|||
name = "coverage"
|
||||
version = "5.5"
|
||||
description = "Code coverage measurement for Python"
|
||||
category = "dev"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
|
||||
|
||||
[package.extras]
|
||||
toml = ["toml"]
|
||||
|
||||
[[package]]
|
||||
name = "coveralls"
|
||||
version = "3.2.0"
|
||||
description = "Show coverage stats online via coveralls.io"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">= 3.5"
|
||||
|
||||
[package.dependencies]
|
||||
coverage = ">=4.1,<6.0"
|
||||
docopt = ">=0.6.1"
|
||||
requests = ">=1.0.0"
|
||||
|
||||
[package.extras]
|
||||
yaml = ["PyYAML (>=3.10)"]
|
||||
|
||||
[[package]]
|
||||
name = "docopt"
|
||||
version = "0.6.2"
|
||||
description = "Pythonic argument parser, that will make you smile"
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[[package]]
|
||||
name = "flake8"
|
||||
version = "3.9.2"
|
||||
|
@ -520,7 +544,7 @@ watchdog = ["watchdog"]
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.9"
|
||||
content-hash = "84e38d6533c1cc44cb0fd981a4b19b78b20d5f33e9c1f8d0aa2f60f73e91d4c4"
|
||||
content-hash = "91de17883559ddc3bcac3bf247041b9d452b27d95115f62aeb13f5a6781f34e9"
|
||||
|
||||
[metadata.files]
|
||||
appdirs = [
|
||||
|
@ -612,6 +636,13 @@ coverage = [
|
|||
{file = "coverage-5.5-pp37-none-any.whl", hash = "sha256:2a3859cb82dcbda1cfd3e6f71c27081d18aa251d20a17d87d26d4cd216fb0af4"},
|
||||
{file = "coverage-5.5.tar.gz", hash = "sha256:ebe78fe9a0e874362175b02371bdfbee64d8edc42a044253ddf4ee7d3c15212c"},
|
||||
]
|
||||
coveralls = [
|
||||
{file = "coveralls-3.2.0-py2.py3-none-any.whl", hash = "sha256:aedfcc5296b788ebaf8ace8029376e5f102f67c53d1373f2e821515c15b36527"},
|
||||
{file = "coveralls-3.2.0.tar.gz", hash = "sha256:15a987d9df877fff44cd81948c5806ffb6eafb757b3443f737888358e96156ee"},
|
||||
]
|
||||
docopt = [
|
||||
{file = "docopt-0.6.2.tar.gz", hash = "sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"},
|
||||
]
|
||||
flake8 = [
|
||||
{file = "flake8-3.9.2-py2.py3-none-any.whl", hash = "sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"},
|
||||
{file = "flake8-3.9.2.tar.gz", hash = "sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b"},
|
||||
|
|
|
@ -16,6 +16,7 @@ flask_apscheduler = "^1.11.0"
|
|||
Flask = "^2.0.1"
|
||||
peewee = "^3.14.0"
|
||||
requests = "^2.25.1"
|
||||
coverage = "^5.5"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
rope = "^0.16.0"
|
||||
|
@ -24,6 +25,7 @@ flake8-black = "^0.2.1"
|
|||
black = "^20.8b1"
|
||||
pytest = "^6.2.4"
|
||||
pytest-cov = "^2.12.1"
|
||||
coveralls = "^3.2.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
|
|
Loading…
Add table
Reference in a new issue