Skip to content

Commit

Permalink
update: numba disable jit flag in poetry command
Browse files Browse the repository at this point in the history
  • Loading branch information
bhosale2 committed Jul 19, 2022
1 parent bea4153 commit 941060f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,10 @@ jobs:
- name: Run style checks
run: |
make check-codestyle
# Set environment variables for coverage test.
# For the coverage test we disable numba jit compilation, since it prevents generating coverage data.
- name: Set environment variables for coverage test
run: |
echo "NUMBA_DISABLE_JIT=1" >> $GITHUB_ENV
- name: Test PyElastica using pytest
if: startsWith(runner.os, 'macOS')
run: |
poetry run pytest -c pyproject.toml --cov=elastica --cov-report=xml
make test_ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#* Variables
PYTHON := python
PYTHONPATH := `pwd`

#* Poetry
.PHONY: poetry-download
poetry-download:
Expand Down Expand Up @@ -38,7 +37,11 @@ format-codestyle: black flake8

.PHONY: test
test:
poetry run pytest --cov=elastica
NUMBA_DISABLE_JIT=1 poetry run pytest --cov=elastica

.PHONY: test_ci
test_ci:
NUMBA_DISABLE_JIT=1 poetry run pytest --cov=elastica --cov-report=xml

.PHONY: check-codestyle
check-codestyle: black-check flake8
Expand Down

0 comments on commit 941060f

Please sign in to comment.