22 lines
722 B
YAML
22 lines
722 B
YAML
# Forgejo and Gitea Actions both read .github/workflows when their own folder is absent.
|
|
# On Forgejo, if the runner's default action mirror lacks setup-pixi, write it as
|
|
# https://github.com/prefix-dev/setup-pixi@v0.9.4.
|
|
name: check
|
|
on: [push, pull_request]
|
|
jobs:
|
|
check:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
environment: [default, py310]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: prefix-dev/setup-pixi@v0.9.4
|
|
with:
|
|
pixi-version: v0.69.0
|
|
environments: ${{ matrix.environment }}
|
|
- name: Check the repository
|
|
run: pixi run --environment ${{ matrix.environment }} check
|