Skip to content

Commit 72c5f42

Browse files
committed
simplify and cleanup
1 parent 6e182b6 commit 72c5f42

File tree

1 file changed

+13
-32
lines changed

1 file changed

+13
-32
lines changed

.github/workflows/test.yaml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
2-
3-
41
name: test
52

63
on: [push, pull_request]
74

8-
env:
9-
PIXI_VERSION: v0.47.0
10-
11-
# # Gave up -- could not figure out how to use environment variables :-(
12-
# env:
13-
# # I got these from: https://github.com/prefix-dev/setup-pixi/blob/main/README.md
14-
# # they seem to keep it pretty up to date
15-
# SETUP_PIXI_VERSION: v0.8.1
16-
# PIXI_VERSION: v0.29.0
17-
185
jobs:
196
test:
207
runs-on: ${{ matrix.os }}
@@ -23,28 +10,22 @@ jobs:
2310
matrix:
2411
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
2512
environment: [test310, test311, test312, test313]
13+
2614
steps:
27-
- uses: actions/checkout@v4
28-
- 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
2918
with:
30-
pixi-version: latest
3119
cache: true
32-
# auth-host: prefix.dev
33-
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
34-
- run: pixi run --environment ${{ matrix.environment }} test
35-
lint:
36-
runs-on: ubuntu-latest
37-
strategy:
38-
fail-fast: false
39-
steps:
40-
- uses: actions/checkout@v4
41-
- uses: prefix-dev/[email protected]
42-
with:
43-
pixi-version: latest
44-
cache: true
45-
# auth-host: prefix.dev
46-
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
47-
- 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
4829
4930
5031

0 commit comments

Comments
 (0)