Skip to content
Snippets Groups Projects

Rename Stocks data registration to LabID data registration.

Merged William Murphy requested to merge #15-rename-stocks-data-registration into master
2 files
+ 2
7
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
8
image: python:3.11-slim-bookworm
stages: ["test", "build"]
stages: ["code-analysis", "test", "build"]
before_script: ["pip --quiet install poetry && poetry install"]
cache:
@@ -8,12 +8,15 @@ cache:
paths: ["/root/.cache/pip", "/root/.cache/pypoetry"]
Run type checks:
stage: test
stage: code-analysis
script:
- poetry run mypy --install-types --non-interactive .
- |
poetry export -f requirements.txt --with=dev --output requirements.txt
pip install -q -r requirements.txt
mypy dma_client
Run pylint:
stage: test
stage: code-analysis
script:
- poetry run pylint dma_client --exit-zero
@@ -21,7 +24,7 @@ Run pylint:
stage: test
tags: ["k8s"]
services:
- name: registry.git.embl.de/grp-itservices/dma-python-client/api-mock:1.14.1
- name: registry.git.embl.de/grp-itservices/dma-python-client/api-mock:1.14.10
alias: api-mock
script:
- |
@@ -56,9 +59,9 @@ Run tests - Python 3.11:
Publish package:
stage: build
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
changes: ['pyproject.toml']
when: always
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH' # master
changes:
- 'pyproject.toml'
tags: ["k8s"]
variables:
PYPI_URL: https://git.embl.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi
Loading