Pip cache step runs after install and key is never expanded #8

Closed
opened 2026-06-17 17:12:37 +01:00 by lyrathorpe · 0 comments
Owner

In .gitea/workflows/build-and-publish.yaml the "Cache pip dependencies" step runs AFTER "Install test dependencies", so the cache never accelerates the install it is meant to serve. Additionally the cache key is written as a YAML string "$RUNNER_OS-pip-..." where $RUNNER_OS is a shell variable that is never expanded in this context.

Fix:

  • Move the actions/cache step before the install step.
  • Use ${{ runner.os }} in the key instead of $RUNNER_OS.

Acceptance:

  • The cache is restored before dependencies are installed.
  • The cache key is OS-specific via the Actions expression.
In .gitea/workflows/build-and-publish.yaml the "Cache pip dependencies" step runs AFTER "Install test dependencies", so the cache never accelerates the install it is meant to serve. Additionally the cache key is written as a YAML string "$RUNNER_OS-pip-..." where $RUNNER_OS is a shell variable that is never expanded in this context. Fix: - Move the actions/cache step before the install step. - Use ${{ runner.os }} in the key instead of $RUNNER_OS. Acceptance: - The cache is restored before dependencies are installed. - The cache key is OS-specific via the Actions expression.
lyrathorpe added the ci label 2026-06-17 17:12:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lyrathorpe/legacy-email-proxy#8