use v0.8.0 #234
Workflow file for this run
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: | |
pull_request: | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
unit-tests: | |
name: pytest | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { os: ubuntu-latest, environment: py38 } | |
- { os: ubuntu-latest, environment: py312 } | |
- { os: windows-latest, environment: py38 } | |
- { os: windows-latest, environment: py312 } | |
- { os: macos-latest, environment: py38 } | |
- { os: macos-latest, environment: py312 } | |
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 pixi | |
uses: prefix-dev/[email protected] | |
with: | |
environments: ${{ matrix.environment }} | |
- name: Install repository | |
run: pixi run -e ${{ matrix.environment }} postinstall | |
- name: Run unittests | |
uses: quantco/pytest-action@v2 | |
with: | |
report-title: Unit tests ${{ matrix.environment }} | |
custom-pytest: pixi run -e ${{ matrix.environment }} pytest | |
pre-commit-checks: | |
name: Pre-commit Checks | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Set up pixi | |
uses: prefix-dev/[email protected] | |
with: | |
environments: lint default | |
- name: pre-commit | |
run: pixi run pre-commit-run --color=always --show-diff-on-failure |