Skip to content

Commit b742824

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

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ 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+
if: matrix.os == 'ubuntu-24.04' && matrix.python-version == env.MAIN_PYTHON_VERSION
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: coverage-${{ github.ref_name }}-${{ github.sha }}
43+
path: htmlcov/
44+
retention-days: 30
3845

3946
style:
4047
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)