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 28, 2024
1 parent 472b299 commit 7d4970b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[report]
include = font_collector/*
exclude_lines =
@abstractmethod
12 changes: 11 additions & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,20 @@ 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 pytest-cov
run: |
pip install pytest
pip install pytest-cov
- name: Run tests
run: |
pytest
- name: Generate coverage report
run: |
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
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://app.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

0 comments on commit 7d4970b

Please sign in to comment.