Update CI to use poetry for dependency management
This commit is contained in:
parent
a203ce904e
commit
d177812270
@ -1,20 +1,15 @@
|
|||||||
image: python:3-alpine
|
image: python:latest
|
||||||
|
|
||||||
# Also run CI for Merge requests
|
stages:
|
||||||
workflow:
|
- lint
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
||||||
- if: $CI_COMMIT_TAG
|
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
# - python --version ; pip --version # For debugging
|
- pip install poetry
|
||||||
- pip install flake8 -qq
|
- poetry install --no-root
|
||||||
- pip install mypy -qq
|
|
||||||
- pip install types-PyYAML types-psycopg2 -qq
|
|
||||||
|
|
||||||
test:
|
lint:
|
||||||
|
stage: lint
|
||||||
script:
|
script:
|
||||||
# ignore long lines
|
- poetry run ruff check
|
||||||
- flake8 --ignore=E501 cleanmedia
|
- poetry run ruff format --check
|
||||||
- mypy cleanmedia
|
- poetry run mypy .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user