Skip to content

Commit 8b68f8f

Browse files
optimise workflow using uv
1 parent c825321 commit 8b68f8f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/fortran-lint.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ jobs:
3535
with:
3636
python-version: ${{ inputs.python-version }}
3737

38-
- name: Cache pip packages
38+
- name: Cache uv packages
3939
uses: actions/cache@v4
4040
with:
41-
path: ~/.cache/pip
42-
key: ${{ runner.os }}-pip-${{ inputs.python-version }}
41+
path: ~/.cache/uv
42+
key: ${{ runner.os }}-uv-${{ inputs.python-version }}
4343
restore-keys: |
44-
${{ runner.os }}-pip-
44+
${{ runner.os }}-uv-
4545
46-
- name: minimize pip cache
47-
run: python -m pip cache purge || true
46+
- name: minimize uv cache
47+
run: uv cache clean && uv cache prune || true
4848

4949
- name: Install Fortitude Linter
5050
run: |
51-
python -m pip install --upgrade pip
52-
python -m pip install fortitude-lint==0.7.3
51+
uv self update -q
52+
uv install fortitude-lint==0.7.3
5353
5454
- name: Run Fortitude Linter
5555
run: |

0 commit comments

Comments
 (0)