diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 3c4f138..9a7151a 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -16,6 +16,9 @@ on: - npe2 workflow_dispatch: +env: + FORCE_COLOR: 1 + jobs: test: name: ${{ matrix.platform }} py${{ matrix.python-version }} @@ -62,7 +65,14 @@ jobs: PLATFORM: ${{ matrix.platform }} - name: Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 + with: + token: be4e7201-27a9-4b44-a4a6-ff2903872cf1 + files: .tox/*/coverage.xml + flags: unittests + name: codecov-umbrella + fail_ci_if_error: true + deploy: # this will run when you have tagged a commit, starting with "v*" diff --git a/tox.ini b/tox.ini index 51b38c3..0bd858d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,11 @@ # For more information about tox, see https://tox.readthedocs.io/en/latest/ [tox] -envlist = py{39,310,311,312}-{linux,macos,windows} +envlist = py{39,310,311,312,313}-{linux,macos,windows} isolated_build=true [gh-actions] python = + 3.9: py39 3.10: py310 3.11: py311 3.12: py312 @@ -30,4 +31,7 @@ passenv = PYVISTA_OFF_SCREEN extras = testing -commands = pytest -v --color=yes --cov={{module_name}} --cov-report=xml +commands = pytest -v --color=yes --cov=platemapper --cov-report=xml + +[coverage:run] +branch = True