Skip to content

Commit

Permalink
Merge pull request #483 from currocam/broken-windows-ci
Browse files Browse the repository at this point in the history
Fix Windows CI (choose correct python executable)
  • Loading branch information
bhaller authored Nov 11, 2024
2 parents a4a4897 + 434a59d commit 6c09166
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ jobs:
msys2-devel
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-cmake
- name: Setup Mambaforge
- name: Setup Miniforge3
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: anaconda-client-env
use-mamba: true
Expand All @@ -134,21 +133,27 @@ jobs:
shell: bash
- name: Cache Conda env
uses: actions/cache@v3
env:
# Increase this value to reset cache if treerec/tests/environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ${{ env.CONDA }}/envs
# Use faster GNU tar
enableCrossOsArchive: true
path: D:\conda_pkgs_dir
key:
conda-${{ runner.os }}--python-${{ matrix.python }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('treerec/tests/environment.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if
# treerec/tests/environment.yml has not changed
CACHE_NUMBER: 0
id: cache
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: anaconda-client-env
environment-file: treerec/tests/environment.yml
pkgs-dirs: D:\conda_pkgs_dir
- name: Update environment
shell: bash -el {0}
run:
mamba env update -n anaconda-client-env -f treerec/tests/environment.yml
conda env update -n anaconda-client-env -f treerec/tests/environment.yml
if: steps.cache.outputs.cache-hit != 'true'
- name: Build and test (Debug)
run: |
Expand Down

0 comments on commit 6c09166

Please sign in to comment.