Skip to content

Commit

Permalink
CI: Upgrade setup pixi workflow action to latest version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JuLieAlgebra committed Mar 11, 2024
1 parent e12bf6d commit 1d6c276
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/linter_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Code Style Check

on:
push:
branches:
- main
pull_request:
types:
- opened
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 1d6c276

Please sign in to comment.