summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 350b74e3cbb2a240a761cbdb6ba7fb6d689adb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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