From 05c690178894b21db36a42a81bf915949045c3d4 Mon Sep 17 00:00:00 2001 From: Alexander Clausen Date: Wed, 13 Mar 2024 19:56:03 +0100 Subject: [PATCH] Add additional `numba_coverage` job --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db4cb3c..1ed6308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,3 +37,20 @@ jobs: uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + numba_coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: 'Choose Python version 3.12' + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: install the package + run: python3 -m pip install .[test] + - name: run pytest + run: NUMBA_DISABLE_JIT=1 pytest --cov=microscope_calibration --cov-report=xml --cov-report=term tests/ + - name: submit code coverage + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}