Skip to content

Add GitHub workflows #2

Add GitHub workflows

Add GitHub workflows #2

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
pixi-environment:
- py310
- py311
- py312
steps:
- uses: actions/checkout@v4
- name: Set up Pixi
uses: prefix-dev/[email protected]
with:
cache: true
environments: ${{ matrix.pixi-environment }}
- name: Run tests
run: pixi run --environment ${{ matrix.pixi-environment }} cov-xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}