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 12abfca
Show file tree
Hide file tree
Showing 4 changed files with 21 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
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 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/codecov-action@v4.0.1
with:
fail_ci_if_error: true
file: ./coverage.xml
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 12abfca

Please sign in to comment.