Skip to content

Commit c0dbd1b

Browse files
committed
chore(ci): reorganize installation step in CI workflow
- Move 'Install the project' step after cache setup - Ensure cache is configured before installing dependencies - Add cache enable option to uv setup step - Improve workflow efficiency by optimizing step order
1 parent f793da1 commit c0dbd1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ jobs:
6363
enable-cache: true
6464
python-version: ${{ matrix.python-version }}
6565

66-
- name: Install the project
67-
run: uv sync --all-extras --group test --group mypy
68-
6966
- name: Cache of Ruff PyTest and MyPY
7067
uses: actions/cache@v4
7168
with:
@@ -77,6 +74,9 @@ jobs:
7774
restore-keys: |
7875
${{ runner.os }}-py${{ matrix.python-version }}-ruff-pytest-mypy-
7976
77+
- name: Install the project
78+
run: uv sync --all-extras --group test --group mypy
79+
8080
- name: Lint check with ruff
8181
uses: astral-sh/ruff-action@v3
8282

@@ -102,6 +102,8 @@ jobs:
102102
fetch-depth: 0
103103
- name: Install uv
104104
uses: astral-sh/setup-uv@v6
105+
with:
106+
enable-cache: true
105107
- name: Build
106108
run: uv build
107109
- name: Upload package distributions to artifact

0 commit comments

Comments
 (0)