Commit 13855c6880c by Pierre Augier

Try CI with Gitlab

parent 7a86a4c30a1
Pipeline #3106 failed with stage
in 16 minutes 6 seconds
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]
......
......@@ -61,9 +61,12 @@ 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:
print("ImportError black")
import autopep8
def format_str(src_contents):
......@@ -71,6 +74,8 @@ except ImportError:
else:
print("version black", black.__version__)
try:
_mode = black.FileMode(line_length=82)
except TypeError:
......
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