Skip to content

Commit

Permalink
Add codecov token (#403)
Browse files Browse the repository at this point in the history
* add codecov token

* generate xml coverage report

* add timeout to testing jobs
  • Loading branch information
K-Meech authored Apr 18, 2024
1 parent 389e455 commit 560909f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ jobs:
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
use-xvfb: true

test_numba_disabled:
needs: [linting, manifest]
name: Run tests with numba disabled
timeout-minutes: 60
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT: "1"
Expand All @@ -89,13 +91,15 @@ jobs:
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: "3.10"
secret-codecov-token: ${{ secrets.CODECOV_TOKEN }}
codecov-flags: "numba"

# Run brainglobe-workflows brainmapper-CLI tests to check for
# breakages
test_brainmapper_cli:
needs: [linting, manifest]
name: Run brainmapper tests to check for breakages
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Cache tensorflow model
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ python =
3.10: py310
[testenv]
commands = python -m pytest -v --color=yes
commands = python -m pytest -v --color=yes --cov=cellfinder --cov-report=xml
deps =
pytest
pytest-cov
Expand Down

0 comments on commit 560909f

Please sign in to comment.