Commit cde8acff authored by Pierre Augier's avatar Pierre Augier
Browse files

Use pytest-cov, nbval and pythran 0.9.6

parent 2932171010d5
Pipeline #9628 failed with stage
in 8 minutes and 34 seconds
COV=pytest --cov=transonic --cov-append --cov-config=setup.cfg --no-cov
develop:
pip install -e .[dev]
......@@ -6,7 +8,7 @@ black:
black -l 82 transonic transonic_cl data_tests
tests:
pytest transonic data_tests/ipynb
pytest --nbval-lax transonic data_tests/ipynb
tests_cython:
TRANSONIC_BACKEND="cython" pytest transonic data_tests/ipynb
......@@ -34,13 +36,13 @@ clean:
tests_coverage_short:
mkdir -p .coverage
TRANSONIC_BACKEND="python" coverage run -p -m pytest transonic data_tests/ipynb
TRANSONIC_BACKEND="numba" coverage run -p -m pytest transonic
coverage run -p -m pytest transonic data_tests/ipynb
TRANSONIC_BACKEND="python" $(COV) --nbval-lax transonic data_tests/ipynb
TRANSONIC_BACKEND="numba" $(COV) transonic
$(COV) --nbval-lax transonic data_tests/ipynb
tests_coverage: tests_coverage_short
TRANSONIC_BACKEND="cython" coverage run -p -m pytest transonic
mpirun -np 2 coverage run -p -m pytest transonic
TRANSONIC_BACKEND="cython" $(COV) transonic
mpirun -np 2 $(COV) transonic
report_coverage:
coverage combine
......
......@@ -28,8 +28,7 @@ mpi =
test =
pytest
pytest-cov
pytest-xdist
# git+https://github.com/zonca/pytest-ipynb#egg=pytest-ipynb
nbval
pythran
cython
black
......
......@@ -17,17 +17,19 @@ envlist =
codecov
[testenv]
sitepackages = True
sitepackages = False
deps =
coverage
pytest
# git+https://github.com/zonca/pytest-ipynb#egg=pytest-ipynb
pytest-cov
nbval
numpy
mpi4py
black
scipy
numba
pythran: git+https://github.com/serge-sans-paille/pythran#egg=pythran
pythran: pythran==0.9.6
# pythran: git+https://github.com/serge-sans-paille/pythran#egg=pythran
cython: cython
whitelist_externals =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment