Skip to content

Commit

Permalink
Merge pull request #92 from data-engineering-collective/micromamba
Browse files Browse the repository at this point in the history
Switch to setup-micromamba
  • Loading branch information
xhochy authored Sep 8, 2023
2 parents 442435e + e31db7e commit 82b8f43
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
SIMPLEKV_CI: 1
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
- name: Set up Conda env
uses: mamba-org/setup-micromamba@2b72821d5ad7f6da3c003a3684ce341bf187b46f
with:
miniforge-variant: Mambaforge
use-mamba: true
python-version: ${{ matrix.PYTHON_VERSION }}
environment-file: environment.yml
cache-environment: true
create-args: >-
python=${{ matrix.PYTHON_VERSION }}
# For some reason we can't check for $ACTIONS_ID_TOKEN_REQUEST_URL
# from the `if` condition in the next step.
# See this commit: https://github.com/simonbohnen/minimalkv/commit/775c74c1b1248245d66c2be69476e18acda9f2fe
Expand Down Expand Up @@ -70,14 +71,20 @@ jobs:
file: ./coverage.xml

pre-commit-checks:
name: "Pre-commit checks - Python 3.8"
name: "Pre-commit checks"
runs-on: ubuntu-latest
env:
PRE_COMMIT_USE_MICROMAMBA: 1
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Python 3.8
uses: actions/checkout@v4
- name: Set up micromamba
uses: mamba-org/setup-micromamba@2b72821d5ad7f6da3c003a3684ce341bf187b46f
- name: Add micromamba to GITHUB_PATH
run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH"
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0

0 comments on commit 82b8f43

Please sign in to comment.