Skip to content

put env: inside job #124

put env: inside job

put env: inside job #124

Workflow file for this run

name: test
on: [push, pull_request]
env:
# I got these from: https://github.com/prefix-dev/setup-pixi/blob/main/README.md
# they seem to keep it pretty up to date
SETUP_PIXI_VERSION: v0.8.1
PIXI_VERSION: v0.29.0
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
environment: [test310, test311, test312]
steps:
- uses: actions/checkout@v4
- uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}"

Check failure on line 22 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: 22, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SETUP_PIXI_VERSION .github/workflows/test.yaml (Line: 36, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SETUP_PIXI_VERSION
with:
pixi-version: "${{ env.PIXI_VERSION }}"
cache: true
# auth-host: prefix.dev
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
# - run: pixi run --environment test312 lint
- run: pixi run --environment ${{ matrix.environment }} test
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}"
with:
pixi-version: ${{ env.PIXI_VERSION }}
cache: true
# auth-host: prefix.dev
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
- run: pixi run --environment test310 lint