summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2f6d4736a1ec877d99112fcf4cd5321e4c6be6b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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:
    refs:
      - master
    changes:
      - pyproject.toml
  before_script:
    - pip install poetry
    - poetry install --no-root
  script:
    - POETRY_PYPI_TOKEN_PYPI=$PYPI_PASSWORD poetry publish --build