Skip to content

Commit be87686

Browse files
committed
change coverage
1 parent 75b289a commit be87686

File tree

3 files changed

+38
-7
lines changed

3 files changed

+38
-7
lines changed

.github/workflows/test.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ jobs:
2222
- name: Test
2323
run: |
2424
pip install pytest
25-
poetry run pytest
26-
- name: Generate coverage
27-
run: |
28-
poetry run coverage run -m pytest
25+
poetry run pytest src/test --cov=./ --cov-report=xml
2926
- name: Upload coverage to Codecov
3027
uses: codecov/codecov-action@v2
3128
with:
32-
files: .coverage
29+
files: ./coverage.xml

poetry.lock

+35-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ python-dateutil = "^2.8.1"
1919

2020
[tool.poetry.dev-dependencies]
2121
pytest = "^6.0"
22-
coverage = "^6.1.1"
22+
pytest-cov = "^3.0.0"
2323

2424
[build-system]
2525
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)