feat(workflows): add cache-dependency-glob for improved dependency caching in build, lint, and test workflows
This commit is contained in:
@@ -14,6 +14,7 @@ jobs:
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache-dependency-glob: "**/pyproject.toml"
|
||||
- name: Build package
|
||||
run: uv build
|
||||
- name: Upload artifacts
|
||||
|
||||
@@ -14,6 +14,7 @@ jobs:
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache-dependency-glob: "**/pyproject.toml"
|
||||
- name: Install dependencies
|
||||
run: uv sync --dev
|
||||
- name: Run ruff
|
||||
|
||||
@@ -17,6 +17,7 @@ jobs:
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache-dependency-glob: "**/pyproject.toml"
|
||||
- name: Install dependencies
|
||||
run: uv sync --dev
|
||||
- name: Run pytest
|
||||
|
||||
Reference in New Issue
Block a user