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:
# Install requirements for empyre:
- conda env create -q # -q: quiet/ no progressbar, because it spams the log!
- conda init bash
- source ~/.bashrc
- conda init bash # needed from conda 4.4 onwards, see https://stackoverflow.com/a/55507956/2286972
- source ~/.bashrc # Reldad bashrc to apply changes made by conda init
- conda activate empyre
- conda info --envs
# Install jutil via deploy token access: # TODO: still needed?
......@@ -23,7 +23,6 @@ test_style:
test_function:
stage: test
image: continuumio/miniconda3:latest
before_script: []
script:
# Execute all tests and also check coverage with --cov:
- python setup.py test --addopts "--cov"
......
......@@ -43,8 +43,8 @@ tests_require =
pytest-flake8
pytest-runner
install_requires =
numpy>=1.17
matplotlib>=3
numpy >= 1.17
matplotlib >= 3
scikit-image
tqdm
scipy
......@@ -70,7 +70,7 @@ all =
# CONFIGURATION FOR TESTING:
[aliases]
test=pytest
test = pytest
[coverage:run]
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