Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/actions/setup-pixi/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Setup Pixi"
description: "Install and configure Pixi environment"

inputs:
pixi-version:
description: "Version of Pixi to install"
required: false
default: "v0.39.0"

runs:
using: "composite"
steps:
- name: Install Pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: ${{ inputs.pixi-version }}
cache: true
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
- name: Build package
run: pixi run python -m build

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
- name: Run tests
run: pixi run -e test test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
- name: Run linter
run: pixi run -e test lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-pixi
- name: Check formatting
run: pixi run -e test fmt --check
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Thumbs.db

# Pixi
.pixi/
pixi.lock

# Python
__pycache__/
Expand Down Expand Up @@ -55,4 +54,4 @@ htmlcov/
!.pixi/config.toml

# Data
data/
data/
Loading
Loading