| 1 |
image: python |
| 2 |
|
| 3 |
stages: |
| 4 |
- earlytest |
| 5 |
- fulltest |
| 6 |
- deploy |
| 7 |
|
| 8 |
before_script: |
| 9 |
- pip install uv |
| 10 |
- uv sync --extra tests |
| 11 |
|
| 12 |
variables: |
| 13 |
GIT_SUBMODULE_DEPTH: 1 |
| 14 |
GIT_SUBMODULE_STRATEGY: recursive |
| 15 |
PYTHONPATH: "submodules/cryptodatahub" |
| 16 |
UV_PYTHON_DOWNLOADS: "never" |
| 17 |
UV_PYTHON_PREFERENCE: "only-system" |
| 18 |
|
| 19 |
.test: |
| 20 |
script: |
| 21 |
- uv run coverage run -m unittest discover -v |
| 22 |
- uv run coverage report |
| 23 |
|
| 24 |
pylint: |
| 25 |
image: python:3.14-slim |
| 26 |
stage: earlytest |
| 27 |
script: |
| 28 |
- uv run --with pylint pylint --rcfile .pylintrc cryptoparser docs test |
| 29 |
|
| 30 |
ruff: |
| 31 |
image: python:3.14-slim |
| 32 |
stage: earlytest |
| 33 |
script: uvx ruff check cryptoparser docs test |
| 34 |
|
| 35 |
python314: |
| 36 |
extends: .test |
| 37 |
image: python:3.14-slim |
| 38 |
stage: earlytest |
| 39 |
|
| 40 |
python39: |
| 41 |
extends: .test |
| 42 |
image: python:3.9-slim |
| 43 |
stage: fulltest |
| 44 |
|
| 45 |
python310: |
| 46 |
extends: .test |
| 47 |
image: python:3.10-slim |
| 48 |
stage: fulltest |
| 49 |
|
| 50 |
python311: |
| 51 |
extends: .test |
| 52 |
image: python:3.11-slim |
| 53 |
stage: fulltest |
| 54 |
|
| 55 |
python312: |
| 56 |
extends: .test |
| 57 |
image: python:3.12-slim |
| 58 |
stage: fulltest |
| 59 |
|
| 60 |
python313: |
| 61 |
extends: .test |
| 62 |
image: python:3.13-slim |
| 63 |
stage: fulltest |
| 64 |
|
| 65 |
pythonrc: |
| 66 |
extends: .test |
| 67 |
image: python:3.15-rc-slim |
| 68 |
stage: fulltest |
| 69 |
|
| 70 |
pypy3: |
| 71 |
extends: .test |
| 72 |
image: pypy:3-slim |
| 73 |
stage: fulltest |
| 74 |
|
| 75 |
coveralls: |
| 76 |
image: python:3.12-slim |
| 77 |
variables: |
| 78 |
CI_NAME: gitlab |
| 79 |
CI_BUILD_NUMBER: "${CI_JOB_ID}" |
| 80 |
CI_BUILD_URL: "${CI_JOB_URL}" |
| 81 |
CI_BRANCH: "${CI_COMMIT_REF_NAME}" |
| 82 |
GIT_SUBMODULE_DEPTH: 1 |
| 83 |
GIT_SUBMODULE_STRATEGY: recursive |
| 84 |
PYTHONPATH: "submodules/cryptodatahub" |
| 85 |
stage: deploy |
| 86 |
script: |
| 87 |
- uv run coverage run -m unittest -v -f |
| 88 |
- uv run --with coveralls coveralls |
| 89 |
only: |
| 90 |
refs: |
| 91 |
- master |
| 92 |
|
| 93 |
obs: |
| 94 |
image: |
| 95 |
name: coroner/python_obs:1.2.5 |
| 96 |
pull_policy: always |
| 97 |
stage: deploy |
| 98 |
variables: |
| 99 |
GIT_SUBMODULE_DEPTH: 1 |
| 100 |
GIT_SUBMODULE_STRATEGY: recursive |
| 101 |
before_script: [] |
| 102 |
script: |
| 103 |
- obs.sh |
| 104 |
only: |
| 105 |
refs: |
| 106 |
- master |
| 107 |
- tags |