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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue