Skip to content

Use conda-env-lock #193

Use conda-env-lock

Use conda-env-lock #193

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash -el {0}
jobs:
tests:
name: Tests - Python ${{ matrix.python-version }} - ${{ matrix.os }}
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# environment-file: []
# os: []
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@25949dd7cbed1382ed14df19c63f04c72c72cd67
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"