Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kianby committed Aug 15, 2021
1 parent b123567 commit e64aa4a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pytest.yml
Expand Up @@ -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 changes: 33 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Expand Up @@ -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"
Expand All @@ -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"]
Expand Down

0 comments on commit e64aa4a

Please sign in to comment.