Commit ea9635fb90f by Pierre Augier

Try CI with Gitlab

parent 7a86a4c30a1
Pipeline #3107 failed with stage
variables:
CODECOV_TOKEN: b1c3afe7-4ef3-4c69-9656-78beec52ec16
step_without_pythran:
image: fluiddyn/python3-stable
script:
- pip install -U tox --user
- tox -e py36,codecov
step_pythran_then_cython:
image: fluiddyn/python3-stable
script:
- pip install -U tox --user
- tox -e py36-pythran,py36-cython,codecov
step_pythran_cython:
image: fluiddyn/python3-stable
script:
- pip install -U tox --user
- tox -e py36-pythran-cython
......@@ -35,7 +35,7 @@ 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
TRANSONIC_BACKEND="numba" coverage run -p -m pytest transonic -vv
coverage run -p -m pytest transonic data_tests/ipynb
tests_coverage: tests_coverage_short
......
......@@ -29,8 +29,13 @@ deps =
pythran: git+https://github.com/serge-sans-paille/pythran#egg=pythran
cython: cython
whitelist_externals = make
whitelist_externals =
black
cat
make
commands =
black --version
cat data_tests/saved__backend__/numba/block_fluidsim.py
make tests_coverage
[testenv:codecov]
......
......@@ -19,6 +19,10 @@ header_suffixes = {"pythran": ".pythran", "cython": ".pxd"}
@pytest.mark.skipif(not path_data_tests.exists(), reason="no data tests")
@pytest.mark.skipif(nb_proc > 1, reason="No commandline in MPI")
def test_create_pythran_files():
import black
print("black.__version__", black.__version__)
if path_dir_out.exists():
rmtree(path_dir_out)
......
......@@ -61,7 +61,7 @@ import gast as ast
from transonic.config import backend_default
try:
# since black is still beta (in 03/2019), we can not impose a version :-(
# since black is still beta (in 03/2019), we cannot impose a version :-(
import black
except ImportError:
import autopep8
......
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