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 a3b564b
Show file tree
Hide file tree
Showing 4 changed files with 28 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
21 changes: 20 additions & 1 deletion .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,29 @@ 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: Print coverage report
run: |
pytest --cov=./font_collector
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
file: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
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 a3b564b

Please sign in to comment.