From dfdf4ef4474aed79f5bf0c9e3ae725ca64a5b6c9 Mon Sep 17 00:00:00 2001 From: Maxime Liquet <35924738+maximlt@users.noreply.github.com> Date: Wed, 12 Oct 2022 01:04:45 +0200 Subject: [PATCH] CI: fix the test suite on Windows (#922) --- .github/workflows/test.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5723c2009..29bb04670 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ on: - cron: '0 15 * * SUN' env: - CACHE_VERSION: 1 + CACHE_VERSION: 3 jobs: test_suite: @@ -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" @@ -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: