Debian Codegraph @

.gitlab-ci.yml

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