Commit 56a4feaa authored by Aryan Noshirvani's avatar Aryan Noshirvani

Add PIP cache to speed up CI pipelines

parent 8886499f
Pipeline #967 failed with stages
in 8 minutes and 11 seconds
...@@ -4,13 +4,19 @@ stages: ...@@ -4,13 +4,19 @@ stages:
variables: variables:
PYTHON_VERSION: "3.10" PYTHON_VERSION: "3.10"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache/pip/
test_api: test_api:
stage: test stage: test
image: python:3.10-slim image: python:3.10-slim
before_script: before_script:
- apt-get update && apt-get install -y ffmpeg git build-essential - apt-get update && apt-get install -y ffmpeg git build-essential
- pip install --no-cache-dir -r requirements.txt pytest - pip install -r requirements.txt pytest
script: script:
- PYTHONPATH=. pytest tests/ - PYTHONPATH=. pytest tests/
only: only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment