Skip to content

Commit

Permalink
Move linting to separate CI job (#62)
Browse files Browse the repository at this point in the history
* 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 $
  • Loading branch information
ChrisBarker-NOAA authored Sep 13, 2024
1 parent f2bd644 commit 2c3f53c
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@


name: test

on: [push, pull_request]

# # Gave up -- could not figure out how to use environment variables :-(
# 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 }}
Expand All @@ -10,13 +21,27 @@ jobs:
environment: [test310, test311, test312]
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.7.0
- uses: prefix-dev/setup-pixi@v0.8.1
with:
pixi-version: v0.22.0
pixi-version: v0.29.0
cache: true
# auth-host: prefix.dev
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
- run: pixi run --environment test312 lint
# - 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@v0.8.1
with:
pixi-version: v0.29.0
cache: true
# auth-host: prefix.dev
# auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
- run: pixi run --environment test310 lint



0 comments on commit 2c3f53c

Please sign in to comment.