Skip to content

Merge pull request #40 from pgbrodrick/av5 #38

Merge pull request #40 from pgbrodrick/av5

Merge pull request #40 from pgbrodrick/av5 #38

Workflow file for this run

name: Test SpectralUtil CLI
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
test:
name: ${{ matrix.environment }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
# Map these to the environment names we defined in pyproject.toml
environment: [py39, py310, py311, py312]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
manifest-path: pyproject.toml
# This installs the specific environment and handles caching automatically
environments: ${{ matrix.environment }}
cache: true
- name: Verify CLI installation
run: |
# Use 'pixi run -e <env>' to execute within the context
pixi run -e ${{ matrix.environment }} spectral_util --help
- name: Run tests
run: |
pixi run -e ${{ matrix.environment }} pytest -v