Skip to content

Add a GitHub Action to publish releases on PyPI #149

Add a GitHub Action to publish releases on PyPI

Add a GitHub Action to publish releases on PyPI #149

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
environment: [test310, test311, test312, test313]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup pixi
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
with:
cache: true
- name: Tests
run: >
pixi run --environment ${{ matrix.environment }} test
- name: Lint
if: ${{ contains(${{ matrix.os }}, "ubuntu") && ${{ matrix.environment }} == "test310" }}

Check failure on line 26 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 26, Col: 13): Unexpected symbol: '${{'. Located at position 10 within expression: contains(${{ matrix.os
run: >
pixi run --environment test310 lint