Skip to content

Commit 8664ac1

Browse files
committed
Refactor GitHub Actions workflows to enable caching for UV setup and remove unnecessary cache configuration for Python setup
1 parent fb17ce1 commit 8664ac1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v6
17-
1817
- name: Get Ruff version
1918
id: ruff-version
2019
run: echo "version=$(grep -Po '(?<=ruff==)[0-9]+\.[0-9]+\.[0-9]+' pyproject.toml)" >> $GITHUB_OUTPUT
21-
2220
- name: Run Ruff linter
2321
uses: astral-sh/ruff-action@v4.0.0
2422
with:
@@ -39,9 +37,10 @@ jobs:
3937
uses: actions/setup-python@v6
4038
with:
4139
python-version: ${{ matrix.python-version }}
42-
cache: "pip" # Cache the pip packages to speed up the workflow
4340
- name: Set up UV
4441
uses: astral-sh/setup-uv@v8.2.0
42+
with:
43+
enable-cache: true
4544
- name: Install Dependencies and Package
4645
run: uv sync --all-extras
4746
- name: Run Pyright

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: actions/setup-python@v6
2828
with:
2929
python-version: ${{ matrix.python-version }}
30-
cache: "pip" # Cache the pip packages to speed up the workflow
3130
- name: Set up UV
3231
uses: astral-sh/setup-uv@v8.2.0
3332
with:

0 commit comments

Comments
 (0)