Bump mamba-org/setup-micromamba to v1.8.0 (#48) #198
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
tests: | |
name: Tests - ${{ matrix.environment-file }} | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { os: ubuntu-latest, environment-file: .conda_lock_files/py36_lin64.yml } | |
- { os: ubuntu-latest, environment-file: .conda_lock_files/py312_lin64.yml } | |
- { os: windows-latest, environment-file: .conda_lock_files/py36_win64.yml } | |
- { os: windows-latest, environment-file: .conda_lock_files/py312_win64.yml } | |
- { os: macos-latest, environment-file: .conda_lock_files/py36_osx64.yml } | |
- { os: macos-latest, environment-file: .conda_lock_files/py312_osx64.yml } | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Fetch full git history | |
run: git fetch --prune --unshallow | |
- name: Set up Micromamba env | |
uses: mamba-org/setup-micromamba@8767fb704bd78032e9392f0386bf46950bdd1194 | |
with: | |
environment-file: ${{ matrix.environment-file }} | |
create-args: >- | |
pytest-emoji | |
pytest-md | |
- name: pip install | |
run: pip install -e . | |
- name: Run pytest | |
uses: pavelzw/pytest-action@v2 | |
pre-commit-checks: | |
name: Pre-commit checks - Python 3.12 | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Run pre-commit-conda | |
uses: quantco/pre-commit-conda@v1 | |
with: | |
python-version: "3.12" |