Update CI installation steps
This commit is contained in:
parent
07c685401f
commit
b6805c1675
3 changed files with 6 additions and 3 deletions
|
|
@ -6,6 +6,7 @@ stages:
|
|||
|
||||
variables:
|
||||
UV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/uv"
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
DJANGO_SETTINGS_MODULE: "newsreader.conf.gitlab"
|
||||
POSTGRES_HOST: "$POSTGRES_HOST"
|
||||
POSTGRES_DB: "$POSTGRES_NAME"
|
||||
|
|
@ -16,7 +17,7 @@ variables:
|
|||
cache:
|
||||
key: "$CI_COMMIT_REF_SLUG"
|
||||
paths:
|
||||
- env/
|
||||
- .cache/pip
|
||||
- .cache/uv
|
||||
- node_modules/
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ python-linting:
|
|||
stage: lint
|
||||
image: python:3.11
|
||||
before_script:
|
||||
- uv pip install --requirement requirements/ci.txt
|
||||
- pip install --system uv
|
||||
- uv pip install --system --requirement requirements/ci.txt
|
||||
script:
|
||||
- isort --check-only src/
|
||||
- black --line-length 88 --check src/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ python-tests:
|
|||
- memcached:1.5.22
|
||||
image: python:3.11
|
||||
before_script:
|
||||
- uv pip install --requirement requirements/ci.txt
|
||||
- pip install --system uv
|
||||
- uv pip install --system --requirement requirements/ci.txt
|
||||
script:
|
||||
- coverage run ./src/manage.py test newsreader
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue