Skip to content

Commit 2c3f53c

Browse files
Move linting to separate CI job (#62)
* moved lint check to a separate job * put pix version(s) in variables * fixed yaml bug * fixed more lint ... * try {{ }} * try {{env. }} * put env: inside job * and back to no brackets ... * and now without the quotes * removed env variable :-( * removed extra $
1 parent f2bd644 commit 2c3f53c

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

.github/workflows/test.yaml

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
2+
13
name: test
4+
25
on: [push, pull_request]
6+
7+
# # Gave up -- could not figure out how to use environment variables :-(
8+
# env:
9+
# # I got these from: https://github.com/prefix-dev/setup-pixi/blob/main/README.md
10+
# # they seem to keep it pretty up to date
11+
# SETUP_PIXI_VERSION: v0.8.1
12+
# PIXI_VERSION: v0.29.0
13+
314
jobs:
415
test:
516
runs-on: ${{ matrix.os }}
@@ -10,13 +21,27 @@ jobs:
1021
environment: [test310, test311, test312]
1122
steps:
1223
- uses: actions/checkout@v4
13-
- uses: prefix-dev/setup-pixi@v0.7.0
24+
- uses: prefix-dev/setup-pixi@v0.8.1
1425
with:
15-
pixi-version: v0.22.0
26+
pixi-version: v0.29.0
1627
cache: true
1728
# auth-host: prefix.dev
1829
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
19-
- run: pixi run --environment test312 lint
30+
# - run: pixi run --environment test312 lint
2031
- run: pixi run --environment ${{ matrix.environment }} test
32+
lint:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
fail-fast: false
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: prefix-dev/[email protected]
39+
with:
40+
pixi-version: v0.29.0
41+
cache: true
42+
# auth-host: prefix.dev
43+
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
44+
- run: pixi run --environment test310 lint
45+
2146

2247

0 commit comments

Comments
 (0)