subscleaner/.gitlab-ci.yml
2024-03-03 18:04:01 -03:00

21 lines
406 B
YAML

image: python:latest
lint:
stage: test
before_script:
- pip install poetry
- poetry install --no-root
script:
- poetry run ruff check ./src
- poetry run ruff format --check ./src
deploy_to_pypi:
stage: deploy
only:
- master
before_script:
- pip install poetry
- poetry install --no-root
script:
- POETRY_PYPI_TOKEN_PYPI=$PYPI_PASSWORD poetry publish --build