Skip to content

chore: update pre-commit hooks (#13) #37

chore: update pre-commit hooks (#13)

chore: update pre-commit hooks (#13) #37

Workflow file for this run

name: Unit Tests
on:
workflow_dispatch:
pull_request:
push:
branches: [next, main]
tags: ["v*"]
jobs:
tests:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.0
with:
pixi-version: v0.50.2
manifest-path: pyproject.toml
environments: default
- name: Run unit tests
run: pixi run test
- name: Upload coverage to codecov
uses: codecov/codecov-action@v5
if: |
github.actor != 'dependabot[bot]' &&
matrix.os == 'ubuntu-latest' &&
matrix.python-version == '3.11'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
dependency-check:
name: Dependency audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.0
with:
pixi-version: v0.50.2
manifest-path: pyproject.toml
environments: default
- name: Dependency check
run: |
pixi run audit-deps
continue-on-error: true # Allow audit to fail for known issues