Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ fi

$PIP install --upgrade coverage coveralls git+https://github.com/fmaussion/salem.git
$PIP install -e .
python -c "import xdist" 2>/dev/null || $PIP install pytest-xdist
python -c "import ilock" 2>/dev/null || $PIP install ilock

export COVERAGE_RCFILE="$PWD/.coveragerc"

coverage erase

coverage run --source=./oggm --parallel-mode --module \
pytest --verbose --mpl-results-path="/tmp/oggm-mpl-results/${MPL_OUTPUT_OGGM_SUBDIR/:/_}/${OGGM_TEST_ENV/:/_}" $OGGM_MPL --run-slow --run-test-env $OGGM_TEST_ENV oggm
pytest -n auto --verbose --mpl-results-path="/tmp/oggm-mpl-results/${MPL_OUTPUT_OGGM_SUBDIR/:/_}/${OGGM_TEST_ENV/:/_}" $OGGM_MPL --run-slow --run-test-env $OGGM_TEST_ENV oggm

coverage combine
coverage xml
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ docs = [
]
tests = [
"pytest",
"pytest-xdist",
"ilock",
"pytest-mpl-oggm>=0.180.1",
]

Expand Down
Loading