Use uv for dependency management

This commit is contained in:
Sonny Bakker 2024-08-13 09:07:47 +02:00
parent e9e8fc351c
commit d05e29b5e0
10 changed files with 99 additions and 78 deletions

View file

@ -1,6 +1,6 @@
static:
stage: build
image: node:16-bullseye
image: node:latest
before_script:
- npm install
script:

View file

@ -1,12 +1,16 @@
python-linting:
stage: lint
image: python:3.9-bullseye
image: python:3.11
before_script:
- pip install -r requirements/ci.txt
- uv pip install --requirement requirements/ci.txt
script:
- isort src/ --check-only
- black src/ --line-length 88 --check
- autoflake src/ --check --recursive --remove-all-unused-imports --ignore-init-module-imports
- isort --check-only src/
- black --line-length 88 --check src/
- autoflake --check \
--recursive \
--remove-all-unused-imports \
--ignore-init-module-imports \
src/
only:
refs:
- development
@ -14,7 +18,7 @@ python-linting:
javascript-linting:
stage: lint
image: node:16-bullseye
image: node:latest
before_script:
- npm install
script:

View file

@ -4,15 +4,15 @@ python-tests:
services:
- postgres:15
- memcached:1.5.22
image: python:3.9-bullseye
image: python:3.11
before_script:
- pip install -r requirements/ci.txt
- uv pip install --requirement requirements/ci.txt
script:
- coverage run ./src/manage.py test newsreader
javascript-tests:
stage: test
image: node:16-bullseye
image: node:latest
before_script:
- npm install
script: