Skip to content

Commit 425effa

Browse files
authored
Merge pull request #2 from ndev-kit/ci-updates
Add codecov token and fix tox versions
2 parents db23a71 + d0bdc50 commit 425effa

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- npe2
1717
workflow_dispatch:
1818

19+
env:
20+
FORCE_COLOR: 1
21+
1922
jobs:
2023
test:
2124
name: ${{ matrix.platform }} py${{ matrix.python-version }}
@@ -62,7 +65,14 @@ jobs:
6265
PLATFORM: ${{ matrix.platform }}
6366

6467
- name: Coverage
65-
uses: codecov/codecov-action@v3
68+
uses: codecov/codecov-action@v5
69+
with:
70+
token: be4e7201-27a9-4b44-a4a6-ff2903872cf1
71+
files: .tox/*/coverage.xml
72+
flags: unittests
73+
name: codecov-umbrella
74+
fail_ci_if_error: true
75+
6676

6777
deploy:
6878
# this will run when you have tagged a commit, starting with "v*"

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# For more information about tox, see https://tox.readthedocs.io/en/latest/
22
[tox]
3-
envlist = py{39,310,311,312}-{linux,macos,windows}
3+
envlist = py{39,310,311,312,313}-{linux,macos,windows}
44
isolated_build=true
55

66
[gh-actions]
77
python =
8+
3.9: py39
89
3.10: py310
910
3.11: py311
1011
3.12: py312
@@ -30,4 +31,7 @@ passenv =
3031
PYVISTA_OFF_SCREEN
3132
extras =
3233
testing
33-
commands = pytest -v --color=yes --cov={{module_name}} --cov-report=xml
34+
commands = pytest -v --color=yes --cov=platemapper --cov-report=xml
35+
36+
[coverage:run]
37+
branch = True

0 commit comments

Comments
 (0)