Skip to content

fix importlib.metadata #256

fix importlib.metadata

fix importlib.metadata #256

Workflow file for this run

name: CI
on:
push:
branches:
- main
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.ref }}
fetch-depth: 0
- 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
with:
ref: ${{ github.ref }}
fetch-depth: 0
- 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