diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa7e543..7227e3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,19 +28,19 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for all branches and tags. + - name: Set environment variables run: | echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV - + - name: Create conda environment - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v2 with: cache-downloads: true - cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}" - micromamba-version: 'latest' + cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}" environment-file: ci/requirements/environment.yml - extra-specs: | + create-args: >- python=${{ matrix.python-version }} - name: Install xweights