Skip to content

Commit 6dd2016

Browse files
committed
add coveralls
1 parent 594c0e0 commit 6dd2016

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.github/workflows/pre-commit_pytest.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,21 @@ jobs:
4242
sleep 3
4343
4444
curl -v ${TRITON_HOST}:${TRITON_HTTP}/v2/health/ready
45-
pytest -n 4 -x --cov-report term-missing --cov=tritony --cov-report=xml --disable-pytest-warnings --mpl
46-
- uses: codecov/codecov-action@v3
45+
coverage run --source=tritony -m pytest
46+
- name: Upload coverage data to coveralls.io
47+
run: coveralls --service=github
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
COVERALLS_PARALLEL: true
51+
coveralls:
52+
name: Indicate completion to coveralls.io
53+
needs: pytest
54+
runs-on: ubuntu-latest
55+
container: python:3-slim
56+
steps:
57+
- name: Finished
58+
run: |
59+
pip3 install --upgrade coveralls
60+
coveralls --service=github --finish
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

setup.cfg

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
max-line-length=120
33
ignore = E203,W503
44

5-
[tool:pytest]
6-
addopts = --cov-report term-missing --cov tritony --cov-report=xml --disable-pytest-warnings --mpl
7-
xfail_strict = true
8-
filterwarnings =
9-
ignore:Using a non-tuple sequence:FutureWarning:scipy.*
10-
115
[metadata]
126
name = tritony
137
version = attr: tritony.version.__version__
@@ -72,5 +66,6 @@ tests =
7266
pytest-cov
7367
pytest
7468
pre-commit
69+
coveralls
7570
display =
7671
matplotlib >= 3.3.0

0 commit comments

Comments
 (0)