-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
132 lines (115 loc) · 2.88 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
132 lines (115 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
image: python
stages:
- earlytest
- fulltest
- deploy
before_script:
- apt-get update && apt-get install --no-install-recommends -y git-core
- pip install uv
- uv pip install --system .[tests]
variables:
GIT_SUBMODULE_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
PYTHONPATH: "submodules/cryptoparser:submodules/cryptoparser/submodules/cryptodatahub"
# Full-suite jobs run every live network test under coverage; raise above the 1h default.
.long_running:
timeout: 2h
.test:
script:
- coverage run -m unittest discover -v
- coverage report
pylint:
image: python:3.14-slim
stage: earlytest
script:
- uv pip install --system pylint
- pylint --rcfile .pylintrc cryptolyzer docs test
ruff:
image: python:3.14-slim
stage: earlytest
script: uvx ruff check cryptolyzer docs test
python314:
extends: [.long_running, .test]
image: python:3.14-slim
stage: earlytest
python39:
extends: [.long_running, .test]
image: python:3.9-slim
stage: fulltest
python310:
extends: [.long_running, .test]
image: python:3.10-slim
stage: fulltest
python311:
extends: [.long_running, .test]
image: python:3.11-slim
stage: fulltest
python312:
extends: [.long_running, .test]
image: python:3.12-slim
stage: fulltest
python313:
extends: [.long_running, .test]
image: python:3.13-slim
stage: fulltest
pythonrc:
extends: [.long_running, .test]
image: python:3.15-rc-slim
stage: fulltest
coveralls:
extends: .long_running
image: python:3.12-slim
variables:
CI_NAME: gitlab
CI_BUILD_NUMBER: "${CI_JOB_ID}"
CI_BUILD_URL: "${CI_JOB_URL}"
CI_BRANCH: "${CI_COMMIT_REF_NAME}"
GIT_SUBMODULE_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
PYTHONPATH: "submodules/cryptoparser:submodules/cryptoparser/submodules/cryptodatahub"
stage: deploy
script:
- uv pip install --system coveralls
- coverage run -m unittest -v -f
- coveralls
only:
refs:
- master
dockerhub:
image: quay.io/podman/stable:latest
stage: deploy
variables:
DOCKER_NAME: docker.io/${CI_REGISTRY_USER}/${CI_PROJECT_NAME}
GIT_SUBMODULE_STRATEGY: recursive
STORAGE_DRIVER: vfs
before_script:
- if ! [ -z ${CI_COMMIT_TAG} ] ; then DOCKER_NAME="${DOCKER_NAME}:${CI_COMMIT_TAG}" ; fi
- echo "${CI_REGISTRY_PASSWORD}" | podman login -u "${CI_REGISTRY_USER}" --password-stdin docker.io
script:
- podman build -t "$DOCKER_NAME" .
- podman push "$DOCKER_NAME"
only:
refs:
- branches
- tags
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/
- $CI_COMMIT_REF_NAME == "master"
obs:
image:
name: coroner/python_obs:1.2.5
pull_policy: always
stage: deploy
variables:
GIT_SUBMODULE_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
before_script: []
script:
- obs.sh
only:
refs:
- master
- tags
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/
- $CI_COMMIT_REF_NAME == "master"