Skip to content

Commit

Permalink
Use setup-micromamba github action (#1366)
Browse files Browse the repository at this point in the history
* Switch to setup-micromamba in CI

* Specify python-version for lint github action

* Use create-args instead of extra-specs
  • Loading branch information
ianthomas23 authored Sep 19, 2023
1 parent e3b19cc commit 4f0eb48
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
fetch-depth: 0

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-py38.yml
extra-specs: python=${{ matrix.PY }}
create-args: >-
python=${{ matrix.PY }}
- name: Run Tests
shell: bash -l {0}
Expand All @@ -51,7 +52,7 @@ jobs:
fetch-depth: 0

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-win.yml

Expand All @@ -66,6 +67,8 @@ jobs:
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@main
with:
python-version: "3.11"
- uses: pre-commit/action@main

typecheck:
Expand All @@ -75,7 +78,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-typecheck.yml

Expand All @@ -95,7 +98,7 @@ jobs:
fetch-depth: 0

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-downstream.yml

Expand Down Expand Up @@ -151,7 +154,7 @@ jobs:
uses: actions/checkout@v3

- name: Setup conda
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment-friends.yml

Expand Down

0 comments on commit 4f0eb48

Please sign in to comment.