Skip to content

Commit

Permalink
clamp Python version in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eringrant committed Nov 14, 2023
1 parent 37d4e69 commit f987b0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ on:
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: pre-commit/action@v3.0.0
6 changes: 3 additions & 3 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
strategy:
matrix:
python-version: [3.11]
max-parallel: 5
environment-file: [environment-cpu.yml]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Conda environment from `environment-cpu.yml` with Micromamba
- name: Install Conda environment from `${{ matrix.environment-file}}` with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment-cpu.yml
environment-file: ${{ matrix.environment-file }}
init-shell: >-
bash
zsh
Expand Down

0 comments on commit f987b0f

Please sign in to comment.