Skip to content
Snippets Groups Projects
Commit 6952f97b authored by Jan Caron's avatar Jan Caron Committed by Jan Caron
Browse files

Hopefully a fix to test_function

Now using the before_script again due to problems with test_requires
not used by pytest (and it not being installed before being used)
parent 7ad073bf
No related branches found
No related tags found
No related merge requests found
before_script: before_script:
# Install requirements for empyre: # Install requirements for empyre:
- conda env create -q # -q: quiet/ no progressbar, because it spams the log! - conda env create -q # -q: quiet/ no progressbar, because it spams the log!
- conda init bash - conda init bash # needed from conda 4.4 onwards, see https://stackoverflow.com/a/55507956/2286972
- source ~/.bashrc - source ~/.bashrc # Reldad bashrc to apply changes made by conda init
- conda activate empyre - conda activate empyre
- conda info --envs - conda info --envs
# Install jutil via deploy token access: # TODO: still needed? # Install jutil via deploy token access: # TODO: still needed?
...@@ -23,7 +23,6 @@ test_style: ...@@ -23,7 +23,6 @@ test_style:
test_function: test_function:
stage: test stage: test
image: continuumio/miniconda3:latest image: continuumio/miniconda3:latest
before_script: []
script: script:
# Execute all tests and also check coverage with --cov: # Execute all tests and also check coverage with --cov:
- python setup.py test --addopts "--cov" - python setup.py test --addopts "--cov"
......
...@@ -43,8 +43,8 @@ tests_require = ...@@ -43,8 +43,8 @@ tests_require =
pytest-flake8 pytest-flake8
pytest-runner pytest-runner
install_requires = install_requires =
numpy>=1.17 numpy >= 1.17
matplotlib>=3 matplotlib >= 3
scikit-image scikit-image
tqdm tqdm
scipy scipy
...@@ -70,7 +70,7 @@ all = ...@@ -70,7 +70,7 @@ all =
# CONFIGURATION FOR TESTING: # CONFIGURATION FOR TESTING:
[aliases] [aliases]
test=pytest test = pytest
[coverage:run] [coverage:run]
branch = True branch = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment