Skip to content

Commit 1e831be

Browse files
committed
Add Coveralls configurations in workflows
1 parent b75d7b2 commit 1e831be

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
@@ -58,7 +58,15 @@ jobs:
5858

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

6371
- name: Run magika --version
6472
working-directory: python

python/pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ filterwarnings =
77
markers =
88
smoketest
99
slow
10-
10+
11+
addopts = --cov=src/magika --cov-report=term --cov-report=xml

0 commit comments

Comments
 (0)