diff --git a/.woodpecker/main.yaml b/.woodpecker/main.yaml index 11f6cbc..cefe6e2 100644 --- a/.woodpecker/main.yaml +++ b/.woodpecker/main.yaml @@ -16,6 +16,12 @@ steps: DATABASE_URL: postgresql://postgres:postgres@postgres/python_tdd_test CELERY_BROKER_URL: redis://redis:6379/0 REDIS_URL: redis://redis:6379/1 + # Workspace-shared pip cache — Woodpecker mounts the workspace across + # all steps in a run, so the wheels populated here are reused by + # test-two-browser-FTs + test-FTs (saves ~30-60s × 2 = ~1-2 min per + # run). Cache lives only inside one run; cross-run caching would + # need a volume plugin. + PIP_CACHE_DIR: .pip-cache commands: - pip install -r requirements.txt - cd ./src @@ -37,6 +43,7 @@ steps: from_secret: stripe_secret_key STRIPE_PUBLISHABLE_KEY: from_secret: stripe_publishable_key + PIP_CACHE_DIR: .pip-cache commands: - pip install -r requirements.txt - cd ./src @@ -61,6 +68,7 @@ steps: from_secret: stripe_secret_key STRIPE_PUBLISHABLE_KEY: from_secret: stripe_publishable_key + PIP_CACHE_DIR: .pip-cache commands: - pip install -r requirements.txt - cd ./src