From 560909ff6eb74072d970b4752665a29382be368a Mon Sep 17 00:00:00 2001 From: Kimberly Meechan <24316371+K-Meech@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:49:17 +0100 Subject: [PATCH] Add codecov token (#403) * add codecov token * generate xml coverage report * add timeout to testing jobs --- .github/workflows/test_and_deploy.yml | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 1ae8ae98..2bf9e976 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -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" @@ -89,6 +91,7 @@ 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 @@ -96,6 +99,7 @@ jobs: 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 diff --git a/pyproject.toml b/pyproject.toml index 6e5ac59d..2eeeb61e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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