Skip to content

Commit

Permalink
Add Codecov support
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Apr 29, 2024
1 parent 472b299 commit 5acae18
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,22 @@ jobs:
# We need to conserve mkvtoolnix in the PATH env variable.
# From https://stackoverflow.com/a/73981698/15835974

- name: Install pytest
- name: Install pytest and coverage
run: |
pip install pytest
pip install coverage
- name: Run tests
run: |
pytest
- name: Generate coverage report
run: |
coverage run -m pytest
coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ build/
dist/
.idea/
.vscode/
venv/
venv/
.coverage
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# FontCollector
[![codecov](https://codecov.io/github/moi15moi/FontCollector/graph/badge.svg)](https://codecov.io/github/moi15moi/FontCollector)

FontCollector for Advanced SubStation Alpha file.
This tool allows to recover and/or mux the fonts necessary in an mkv.
## Installation
Expand Down
11 changes: 10 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,13 @@ ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "freetype.*"
ignore_missing_imports = true
ignore_missing_imports = true

[tool.coverage.report]
include = [
"font_collector/*",
]
exclude_also = [
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]

0 comments on commit 5acae18

Please sign in to comment.