Skip to content

Commit f09850c

Browse files
committed
simplify and cleanup
1 parent 914b88f commit f09850c

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
21
name: test
32

43
on: [push, pull_request]
54

6-
env:
7-
PIXI_VERSION: v0.47.0
8-
9-
# # Gave up -- could not figure out how to use environment variables :-(
10-
# env:
11-
# # I got these from: https://github.com/prefix-dev/setup-pixi/blob/main/README.md
12-
# # they seem to keep it pretty up to date
13-
# SETUP_PIXI_VERSION: v0.8.1
14-
# PIXI_VERSION: v0.29.0
15-
165
jobs:
176
test:
187
runs-on: ${{ matrix.os }}
@@ -21,28 +10,22 @@ jobs:
2110
matrix:
2211
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
2312
environment: [test310, test311, test312, test313]
13+
2414
steps:
25-
- uses: actions/checkout@v4
26-
- uses: prefix-dev/[email protected]
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- name: Setup pixi
17+
uses: prefix-dev/setup-pixi@19eac09b398e3d0c747adc7921926a6d802df4da # v0.8.8
2718
with:
28-
pixi-version: latest
2919
cache: true
30-
# auth-host: prefix.dev
31-
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
32-
- run: pixi run --environment ${{ matrix.environment }} test
33-
lint:
34-
runs-on: ubuntu-latest
35-
strategy:
36-
fail-fast: false
37-
steps:
38-
- uses: actions/checkout@v4
39-
- uses: prefix-dev/[email protected]
40-
with:
41-
pixi-version: latest
42-
cache: true
43-
# auth-host: prefix.dev
44-
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
45-
- run: pixi run --environment test310 lint
20+
21+
- name: Tests
22+
run: >
23+
pixi run --environment ${{ matrix.environment }} test
24+
25+
- name: Lint
26+
if: contains(${{ matrix.os }}, 'ubuntu')
27+
run: >
28+
pixi run --environment test310 lint
4629
4730
4831

0 commit comments

Comments
 (0)