Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove solver argument from other notebooks"
This reverts commit 3af12ec693f6ed3671545bbadb60fbbe94e4e3bc.
- Loading branch information
Showing
22 changed files
with
4,975 additions
and
2,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
conda: | ||
image: continuumio/miniconda3:latest | ||
image: continuumio/miniconda3:latest | ||
|
||
before_script: | ||
- conda install mamba -c conda-forge | ||
- mamba env update -n fine --file=requirements.yml | ||
- mamba env update -n fine --file=requirements_dev.yml | ||
- mamba info --envs | ||
- source activate fine | ||
- python -m pip install -e . | ||
|
||
test-code: | ||
stage: test | ||
script: | ||
- python -m pytest --cov=FINE test/ | ||
|
||
test-notebooks: | ||
stage: test | ||
script: | ||
- conda install mamba -c conda-forge | ||
- mamba env update -n fine --file=requirements.yml | ||
- mamba env update -n fine --file=requirements_dev.yml | ||
- mamba info --envs | ||
- source activate fine | ||
- python -m pip install -e . | ||
- python -m pytest --cov=FINE test/ | ||
# Run nbval to test all notebooks in examples folder | ||
# and show 20 longest cell executing durations | ||
# With 'nbval-lax', notebooks are only tested for execution errors | ||
# Cells tagged 'nbval-check-output' are checked for consistent output | ||
# Cells tagged 'nbval-skip' are skipped | ||
- python -m pytest --nbval-lax --current-env --durations=20 examples/ | ||
# Only test examples notebooks for branches master, develop and 47-test-notebooks | ||
only: | ||
refs: | ||
- master | ||
- develop | ||
- 47-test-notebooks |
Oops, something went wrong.