Skip to content

Commit 382129d

Browse files
committed
Dependency was missing codecov
1 parent 0c6ccd4 commit 382129d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ jobs:
3434
3535
- name: Run tests
3636
run: |
37-
pytest -v --cov=mediafile --cov-report=xml tests/
37+
pytest -v --cov=mediafile --cov=mediafile --cov-report=xml --cov-report=html test/
38+
- name: Upload coverage reports
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: coverage-report
42+
path: htmlcov/
43+
retention-days: 30
3844

3945
style:
4046
name: Style

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Source = "https://github.com/beetbox/mediafile"
3535
[project.optional-dependencies]
3636
dev = [
3737
"ruff",
38-
"pytest"
38+
"pytest",
39+
"pytest-cov"
3940
]
4041

4142
[tool.ruff]

0 commit comments

Comments
 (0)