Commit 08a87c72 authored by George Papathanail's avatar George Papathanail
Browse files

Update CI pipeline stages

parent 2839ecd4
Loading
Loading
Loading
Loading
Loading
+28 −4
Original line number Diff line number Diff line
stages:
  - quality
  - lint
  - format
  - type
  - architecture
  - test
  - build

@@ -13,15 +16,36 @@ cache:
.python_job:
  image: python:3.12-slim
  before_script:
    - apt-get update
    - apt-get install -y git
    - git --version
    - python --version
    - python -m pip install --upgrade pip
    - python -m pip install -e ".[dev,postgres]"

quality:
  stage: quality
lint:
  stage: lint
  extends: .python_job
  script:
    - pre-commit run --all-files
    - ruff check open_exposure_gateway/

format:
  stage: format
  extends: .python_job
  script:
    - ruff format --check open_exposure_gateway/

type:
  stage: type
  extends: .python_job
  script:
    - mypy open_exposure_gateway/app/ open_exposure_gateway/test/

architecture:
  stage: architecture
  extends: .python_job
  script:
    - lint-imports

test:
  stage: test