Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Codecov support #41

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/codecov-action@v4.0.1
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",
]
Loading