Skip to content

Commit

Permalink
CI: fix the test suite on Windows (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Oct 11, 2022
1 parent ea4e07f commit dfdf4ef
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/test.yaml
Expand Up @@ -11,7 +11,7 @@ on:
- cron: '0 15 * * SUN'

env:
CACHE_VERSION: 1
CACHE_VERSION: 3

jobs:
test_suite:
Expand Down Expand Up @@ -45,9 +45,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: "100"
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
Expand All @@ -65,56 +62,48 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: |
conda install -n base -c defaults "conda>=4.12"
conda install -n base -c conda-forge "mamba>=0.23" --no-update-deps
conda install -c conda-forge "nodejs=15.3.0" --no-update-deps
# TODO: remove pin
conda install -n base -c conda-forge "mamba<0.26" --no-update-deps
conda create -n test-environment
conda activate test-environment
conda config --env --append channels pyviz/label/dev --append channels conda-forge --append channels nodefaults
conda config --env --append channels pyviz/label/dev --append channels conda-forge
conda config --env --remove channels defaults
conda install python=${{ matrix.python-version }} pyctdev
- name: doit develop_install py
if: steps.cache.outputs.cache-hit != 'true'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
conda list
doit develop_install -o examples -o tests --conda-mode=mamba
- name: patch fiona/geostack on Macos
if: steps.cache.outputs.cache-hit != 'true' && contains(matrix.os, 'macos')
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
mamba install "fiona=1.8" "gdal=3.3"
- name: hvplot install if env cached
if: steps.cache.outputs.cache-hit == 'true'
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
python -m pip install --no-deps --no-build-isolation -e .
- name: doit env_capture
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
doit env_capture
- 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
bokeh sampledata
doit test_examples
- name: codecov
run: |
eval "$(conda shell.bash hook)"
conda activate test-environment
codecov
test_suite_36:
Expand Down

0 comments on commit dfdf4ef

Please sign in to comment.