Skip to content

Commit c148eba

Browse files
committed
Add Coveralls configurations in workflows
1 parent 437f7a6 commit c148eba

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/python-test-suite.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ jobs:
5555

5656
- name: Run the python tests suite
5757
working-directory: python
58-
run: uv run --python ${{ matrix.python-version }} pytest tests -m "not slow"
58+
run: |
59+
uv run --python ${{ matrix.python-version }} pytest tests -m "not slow" --cov=src/magika --cov-report=xml --cov-report=term
60+
61+
- name: Upload coverage report to Coveralls
62+
if: always()
63+
working-directory: python
64+
uses: coverallsapp/github-action@v2
65+
with:
66+
path-to-coverage: coverage.xml
5967

6068
- name: Run magika --version
6169
working-directory: python

python/pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ log_level = WARNING
55
markers =
66
smoketest
77
slow
8-
8+
9+
addopts = --cov=src/magika --cov-report=term --cov-report=xml

0 commit comments

Comments
 (0)