Skip to content

Commit

Permalink
build: Re-enable JIT when calculating code coverage, since no-JIT see…
Browse files Browse the repository at this point in the history
…ms to break CI
  • Loading branch information
ma-sadeghi committed Aug 9, 2024
1 parent 65e99c2 commit cbe6ca6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,12 @@ jobs:
run: |
pip install -e .[test,extras]
- name: Disable numba JIT for codecov to include jitted methods
if: (matrix.python-version == 3.10) && (matrix.os == 'ubuntu-latest')
run: |
echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV
- name: Running tests
run:
pytest --cov=. --cov-report=xml

- name: Upload coverage to Codecov
if: (matrix.python-version == 3.10) && (matrix.os == 'ubuntu-latest')
if: (matrix.python-version == 3.12) && (matrix.os == 'ubuntu-latest')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit cbe6ca6

Please sign in to comment.