File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 99 - main
1010 - master
1111
12+ # Prevent duplicate runs when pushing to a branch with an open PR
13+ # Groups PRs and their corresponding branch pushes together
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref_name }}
16+ cancel-in-progress : true
17+
1218jobs :
1319 format-and-lint :
1420 name : Format and Lint Check
2228 uses :
prefix-dev/[email protected] 2329 with :
2430 pixi-version : " latest"
31+ cache : ${{ github.event_name == 'pull_request' }} # Only cache on PRs
32+
33+ - name : Cache pixi environment
34+ if : github.event_name == 'pull_request'
35+ uses : actions/cache@v4
36+ with :
37+ path : |
38+ ~/.pixi
39+ .pixi
40+ key : ${{ runner.os }}-pixi-${{ hashFiles('pixi.lock') }}
41+ restore-keys : |
42+ ${{ runner.os }}-pixi-
2543
2644 - name : Install dependencies
27- run : pixi install --all-environments
45+ run : pixi install
2846
2947 - name : Check formatting
3048 run : pixi run format-check
You can’t perform that action at this time.
0 commit comments