diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16225e2..fdb4dd3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,13 +20,13 @@ static: - ./static/build expire_in: 2 hours -pip: +poetry: image: python:3.10-slim stage: build variables: PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache cache: - key: pip-$CI_COMMIT_REF_SLUG + key: poetry-$CI_COMMIT_REF_SLUG paths: - "$CI_PROJECT_DIR/.pip-cache" - "$CI_PROJECT_DIR/.poetry-cache" @@ -42,7 +42,7 @@ pip: - poetry lock --check - poetry install artifacts: - name: 'pip-$CI_JOB_ID' + name: 'poetry-$CI_JOB_ID' paths: - ./env/ expire_in: 2 hours @@ -51,7 +51,7 @@ pip: image: python:3.10-slim stage: test dependencies: - - pip + - poetry before_script: - apt-get update && apt-get install --yes git libpq-dev - source env/bin/activate @@ -77,7 +77,7 @@ test_python: coverage_format: cobertura path: coverage.xml dependencies: - - pip + - poetry - static django_checks: