Skip to content

Commit

Permalink
Passing python version from "interpreter matrix" to mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 25, 2024
1 parent 827baa6 commit 67acd83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 67acd83

Please sign in to comment.