From e09e74bfe96caa8850d890ee686d2d58c727b8c7 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:33:59 -0700 Subject: [PATCH 01/11] moved lint check to a separate job --- .github/workflows/test.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0042fb2..939939c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,7 +16,21 @@ jobs: 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.7.0 + with: + pixi-version: v0.22.0 + cache: true + # auth-host: prefix.dev + # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} + - run: pixi run --environment test310 lint + From 1373ce43a2fa4fe228df5ddc22ea92a103670450 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:43:17 -0700 Subject: [PATCH 02/11] put pix version(s) in variables --- .github/workflows/test.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 939939c..b95a47b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,3 +1,9 @@ +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 + name: test on: [push, pull_request] jobs: @@ -10,9 +16,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@v0.7.0 + - uses: prefix-dev/setup-pixi@SETUP_PIXI_VERSION with: - pixi-version: v0.22.0 + pixi-version: PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -24,9 +30,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@v0.7.0 + - uses: prefix-dev/setup-pixi@SETUP_PIXI_VERSION with: - pixi-version: v0.22.0 + pixi-version: PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From d07e8b074f54001713ec267b2927236c9d212772 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:46:59 -0700 Subject: [PATCH 03/11] fixed yaml bug --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b95a47b..0262b25 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,9 +16,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@SETUP_PIXI_VERSION + - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION with: - pixi-version: PIXI_VERSION + pixi-version: $PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -30,9 +30,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@SETUP_PIXI_VERSION + - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION with: - pixi-version: PIXI_VERSION + pixi-version: $PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From 23e11e051660c9bf804c1d204a87f304cc58a8e3 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:51:02 -0700 Subject: [PATCH 04/11] fixed more lint ... --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0262b25..3289a8f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,9 +16,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION + - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" with: - pixi-version: $PIXI_VERSION + pixi-version: "$PIXI_VERSION" cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -30,9 +30,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION + - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" with: - pixi-version: $PIXI_VERSION + pixi-version: "$PIXI_VERSION" cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From cd4720bcecc3e09856ba2cb21becd1ff88f1c1ac Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:56:13 -0700 Subject: [PATCH 05/11] try {{ }} --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3289a8f..6bcdca7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,16 +16,16 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" + - uses: "prefix-dev/setup-pixi@${{ SETUP_PIXI_VERSION }}" with: - pixi-version: "$PIXI_VERSION" + pixi-version: "${{ 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" + runs-on: ubuntu-latest strategy: fail-fast: false steps: From 4aa97c16cbf577edbe97cecb5417fc30651c0a4f Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 13:58:41 -0700 Subject: [PATCH 06/11] try {{env. }} --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6bcdca7..b27400c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,9 +16,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@${{ SETUP_PIXI_VERSION }}" + - uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}" with: - pixi-version: "${{ PIXI_VERSION }}" + pixi-version: "${{ env.PIXI_VERSION }}" cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -30,9 +30,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" + - uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}" with: - pixi-version: "$PIXI_VERSION" + pixi-version: ${{ env.PIXI_VERSION }} cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From e6ab37dce9f23bd3fdec08c3b124d8b8f375e0ff Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 14:00:34 -0700 Subject: [PATCH 07/11] put env: inside job --- .github/workflows/test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b27400c..232060e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,11 +1,14 @@ + + +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 -name: test -on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} From be947989279b5bc6ba212d698c83147c45837f78 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 14:02:27 -0700 Subject: [PATCH 08/11] and back to no brackets ... --- .github/workflows/test.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 232060e..7d10ec3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,7 @@ name: test + on: [push, pull_request] env: @@ -19,9 +20,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}" + - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" with: - pixi-version: "${{ env.PIXI_VERSION }}" + pixi-version: "$env.PIXI_VERSION" cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -33,9 +34,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@${{ env.SETUP_PIXI_VERSION }}" + - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" with: - pixi-version: ${{ env.PIXI_VERSION }} + pixi-version: $PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From 30cef2b1466bc7255ce7a5f38a4cf63a93a20e28 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 14:04:25 -0700 Subject: [PATCH 09/11] and now without the quotes --- .github/workflows/test.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7d10ec3..cdc977f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,6 +4,7 @@ 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 @@ -20,9 +21,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" + - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION with: - pixi-version: "$env.PIXI_VERSION" + pixi-version: $env.PIXI_VERSION cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -34,7 +35,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: "prefix-dev/setup-pixi@$SETUP_PIXI_VERSION" + - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION with: pixi-version: $PIXI_VERSION cache: true From 59895075ef5bb6de7beec132fa001fee23a93d8d Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 14:06:06 -0700 Subject: [PATCH 10/11] removed env variable :-( --- .github/workflows/test.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cdc977f..0d304df 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,12 +4,12 @@ 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 +# # 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: @@ -21,9 +21,9 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION + - uses: prefix-dev/setup-pixi@$v0.8.1 with: - pixi-version: $env.PIXI_VERSION + pixi-version: v0.29.0 cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} @@ -35,9 +35,9 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$SETUP_PIXI_VERSION + - uses: prefix-dev/setup-pixi@$v0.8.1 with: - pixi-version: $PIXI_VERSION + pixi-version: v0.29.0 cache: true # auth-host: prefix.dev # auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} From ae1dd707df7f7065151a8da68160783da8e05a3a Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Fri, 13 Sep 2024 14:07:07 -0700 Subject: [PATCH 11/11] removed extra $ --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0d304df..e2a0a50 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: environment: [test310, test311, test312] steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$v0.8.1 + - uses: prefix-dev/setup-pixi@v0.8.1 with: pixi-version: v0.29.0 cache: true @@ -35,7 +35,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - uses: prefix-dev/setup-pixi@$v0.8.1 + - uses: prefix-dev/setup-pixi@v0.8.1 with: pixi-version: v0.29.0 cache: true