Remove uv cache prune steps from CI and refresh lockfile after merge
The dev extra already declares giant[workflow] in pyproject.toml but uv.lock hadn't been regenerated to match. Also drop the uv cache prune step from every CI job.
This commit is contained in:
@@ -27,9 +27,6 @@ jobs:
|
||||
echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"
|
||||
- run: uv sync --extra cpu --extra dev
|
||||
- run: uv run ruff check .
|
||||
# The uv cache is a persistent volume shared by every job on this
|
||||
# runner, so each job trims what it no longer needs before exiting.
|
||||
- run: uv cache prune --ci
|
||||
|
||||
ruff-format:
|
||||
name: Format (ruff format)
|
||||
@@ -48,7 +45,6 @@ jobs:
|
||||
echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"
|
||||
- run: uv sync --extra cpu --extra dev
|
||||
- run: uv run ruff format --check .
|
||||
- run: uv cache prune --ci
|
||||
|
||||
type-check:
|
||||
name: Type check (ty)
|
||||
@@ -67,7 +63,6 @@ jobs:
|
||||
echo "UV_LINK_MODE=copy" >> "$GITHUB_ENV"
|
||||
- run: uv sync --extra cpu --extra dev
|
||||
- run: uv run ty check .
|
||||
- run: uv cache prune --ci
|
||||
|
||||
test:
|
||||
name: Tests
|
||||
@@ -91,7 +86,6 @@ jobs:
|
||||
with:
|
||||
name: coverage-report
|
||||
path: coverage.xml
|
||||
- run: uv cache prune --ci
|
||||
|
||||
bump-version:
|
||||
name: Bump version, tag, and update changelog on merge to master
|
||||
@@ -178,10 +172,6 @@ jobs:
|
||||
git tag -a "$TAG" -m "$TAG"
|
||||
git push origin "refs/tags/$TAG"
|
||||
fi
|
||||
# Same guard as every other step here: on a non-merge push uv was never
|
||||
# set up, so there is nothing to prune.
|
||||
- run: uv cache prune --ci
|
||||
if: steps.merge_check.outputs.is_merge == 'true'
|
||||
|
||||
sync-version-on-tag:
|
||||
name: Sync project version with tag
|
||||
@@ -210,7 +200,6 @@ jobs:
|
||||
else
|
||||
echo "Tag version matches project version ($CURRENT_VERSION)"
|
||||
fi
|
||||
- run: uv cache prune --ci
|
||||
|
||||
publish-package:
|
||||
name: Publish package to Gitea package registry
|
||||
|
||||
@@ -201,7 +201,6 @@ def _write_prediction_ref(
|
||||
"""
|
||||
import yaml
|
||||
|
||||
|
||||
ref = {
|
||||
"prediction_id": pred_uuid,
|
||||
"output": str(out),
|
||||
|
||||
@@ -746,6 +746,7 @@ cuda = [
|
||||
]
|
||||
dev = [
|
||||
{ name = "awkward" },
|
||||
{ name = "b2luigi" },
|
||||
{ name = "bump-my-version" },
|
||||
{ name = "git-cliff" },
|
||||
{ name = "ipykernel" },
|
||||
@@ -775,7 +776,7 @@ requires-dist = [
|
||||
{ name = "awkward", marker = "extra == 'convert'", specifier = ">=2.6,<3" },
|
||||
{ name = "b2luigi", marker = "extra == 'workflow'", specifier = ">=1.0,<2" },
|
||||
{ name = "bump-my-version", marker = "extra == 'dev'", specifier = ">=1.2,<2" },
|
||||
{ name = "giant", extras = ["convert", "analysis", "geometry", "wandb"], marker = "extra == 'dev'" },
|
||||
{ name = "giant", extras = ["convert", "analysis", "geometry", "wandb", "workflow"], marker = "extra == 'dev'" },
|
||||
{ name = "git-cliff", marker = "extra == 'dev'", specifier = ">=2,<3" },
|
||||
{ name = "ipykernel", marker = "extra == 'analysis'", specifier = ">=7.3.0" },
|
||||
{ name = "matplotlib", marker = "extra == 'analysis'", specifier = ">=3.8,<4" },
|
||||
|
||||
Reference in New Issue
Block a user