Skip to content

Commit

Permalink
Pin Python to 3.9 in environment.yml on CircleCI and skip mypy tests …
Browse files Browse the repository at this point in the history
…in conda build (#1176)

* Pin python to 3.9 for quicker environment solve

* Skip mypy tests when building conda package

* Pin only on CircleCI
  • Loading branch information
bouweandela authored Jun 14, 2021
1 parent 00d838b commit 922f299
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
. /opt/conda/etc/profile.d/conda.sh
set -x
mkdir /logs
# Pin Python version for faster environment solve
echo " - python=3.9" >> environment.yml
# Add additional requirements for running all tests
echo "
- r-base
Expand Down Expand Up @@ -135,6 +137,8 @@ jobs:
command: |
. /opt/conda/etc/profile.d/conda.sh
mkdir /logs
# Pin Python version for faster environment solve
echo " - python=3.9" >> environment.yml
# Add additional requirements for running all tests
echo "
- r-base
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dependencies:
- esmpy
- iris>=3.0.1
- graphviz
- python>=3.6 # if 3.7 lxml will not import correctly if <4.5.0
- python>=3.6
- python-stratify
- scipy<1.6 # until ESMValGroup/ESMValCore/issues/927 gets resolved
4 changes: 2 additions & 2 deletions package/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ test:
- r-yaml
- ncl
commands:
- pytest -n 2 -m "not sequential" --ignore=run_test.py
- pytest -n 0 -m "sequential" --ignore=run_test.py
- pytest -n 2 -m "not mypy and not sequential" --ignore=run_test.py
- pytest -n 0 -m "not mypy and sequential" --ignore=run_test.py
- esmvaltool -- --help
- esmvaltool version
imports:
Expand Down

0 comments on commit 922f299

Please sign in to comment.