From 1d6c2768247715b4f779422760ddf9634bbb38c8 Mon Sep 17 00:00:00 2001 From: Julieanna Bacon Date: Sat, 9 Mar 2024 21:30:17 -0500 Subject: [PATCH] CI: Upgrade setup pixi workflow action to latest version CI: Revert to running on main and PR bugfix CI: Preserve workflow version upgrade but there was an error in how the version was being injected bugfix CI: No issue with the version as I thought, just an extra indentation in the yaml bugfix: Returning to prevous versioning style after error message from CI... CI: bugfix attempt. Only create cache on push to main and set the frozen parameter to be true --- .github/workflows/deploy_docs.yaml | 8 +++++++- .github/workflows/linter_check.yaml | 2 ++ .github/workflows/tests.yaml | 7 ++++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_docs.yaml b/.github/workflows/deploy_docs.yaml index 6ea13d7..b4a04f0 100644 --- a/.github/workflows/deploy_docs.yaml +++ b/.github/workflows/deploy_docs.yaml @@ -27,10 +27,16 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Pixi - uses: prefix-dev/setup-pixi@v0.4.3 + uses: prefix-dev/setup-pixi@v0.5.1 with: +<<<<<<< Updated upstream + pixi-version: ${{ env.PIXI_VERSION }} +======= pixi-version: ${{ env.PIXI_version }} + frozen: true +>>>>>>> Stashed changes cache: true + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} - name: Install repository run: | diff --git a/.github/workflows/linter_check.yaml b/.github/workflows/linter_check.yaml index 18baeb3..661de59 100644 --- a/.github/workflows/linter_check.yaml +++ b/.github/workflows/linter_check.yaml @@ -4,6 +4,8 @@ name: Code Style Check on: push: + branches: + - main pull_request: types: - opened diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3f1a9e4..b47af34 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,8 +1,9 @@ name: Install Python, pixi, and project on: - # Will run on push to every branch push: + branches: + - main pull_request: types: - opened @@ -25,10 +26,10 @@ jobs: python-version: ${{ env.PYTHON_VERSION }} - name: Install Pixi - uses: prefix-dev/setup-pixi@v0.4.3 + uses: prefix-dev/setup-pixi@v0.5.1 with: pixi-version: ${{ env.PIXI_version }} - cache: false + cache: true - name: Install repository run: |