Skip to content

Commit

Permalink
CI: fix the test suite on MacOS (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Nov 18, 2022
1 parent bf5d890 commit d843a05
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,28 @@ jobs:
conda config --env --remove channels defaults
conda install python=${{ matrix.python-version }} pyctdev
- name: doit develop_install
if: matrix.os != 'macos-latest'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit develop_install -o tests -o examples -o recommended --conda-mode=mamba
# Temporary hacked step as on MacOS doit develop_install updated CPython leading to a pyctdev failure
- name: doit develop_install
if: matrix.os == 'macos-latest'
run: |
conda activate test-environment
doit develop_install -o tests -o examples -o recommended --conda-mode=mamba || echo "Keep going"
pip install --no-deps --no-build-isolation -e .
- name: patch fiona/geostack on Python 3.7 / Macos
if: contains(matrix.os, 'macos') && matrix.python-version == '3.7'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
mamba install "fiona=1.8" "gdal=3.3"
- name: doit env_capture
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit env_capture
- name: download test data
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
bokeh sampledata
geoviews fetch-data --path=examples
Expand All @@ -76,22 +80,18 @@ jobs:
git describe
- name: doit test_flakes
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_flakes
- name: doit test_unit
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_unit
- name: test examples
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit test_examples
- name: codecov
if: github.event_name == 'push'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
codecov

0 comments on commit d843a05

Please sign in to comment.