Commit d9ae9fba authored by Aryan Noshirvani's avatar Aryan Noshirvani

Add PIP cache to speed up CI pipelines

parent 5d39a569
......@@ -4,13 +4,19 @@ stages:
variables:
PYTHON_VERSION: "3.10"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .cache/pip/
test_api:
stage: test
image: python:3.10-slim
before_script:
- 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:
- PYTHONPATH=. pytest tests/
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