Rename dependency task to show it's using poetry now

This commit is contained in:
Jake Howard 2022-09-13 17:48:42 +01:00
parent e6c12a9a38
commit e85aa7addf
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

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