From 67acd836b7f1aa6dbcae0071473fe9ee4977e000 Mon Sep 17 00:00:00 2001 From: Marcus Oscarsson Date: Wed, 25 Sep 2024 14:34:52 +0200 Subject: [PATCH] Passing python version from "interpreter matrix" to mamba --- .github/workflows/build_and_test.yml | 4 +++- .pre-commit-config.yaml | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index ed63e3b30..ec9406d92 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,7 +12,7 @@ jobs: strategy: max-parallel: 5 matrix: - python-version: ["3.8"] + python-version: ["3.8", "3.9", "3.10", "3.11"] # Skip `pull_request` runs on local PRs for which `push` runs are already triggered # yamllint disable-line rule:line-length @@ -44,6 +44,8 @@ jobs: - name: Set up Conda environment uses: mamba-org/setup-micromamba@v1 with: + create-args: + python=${{ matrix.python-version }} micromamba-version: "latest" environment-file: conda-environment.yml cache-environment: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da8833bcf..1a16da959 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,4 @@ --- - -default_language_version: - python: python3.8 # This should be set to the lowest Python version that we support. - repos: - repo: https://github.com/adrienverge/yamllint