-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (51 loc) · 1.27 KB
/
.gitlab-ci.yml
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
variables:
UV_VERSION: 0.5
PYTHON_VERSION: 3.11
BASE_LAYER: bookworm
default:
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
lint:
stage: test
before_script:
- uv pip install --system ruff
script:
- ruff check --output-format=gitlab --output-file=codequality.json || ruff check --output-format=concise --output-file=codequality.txt || ruff check --output-format=concise
artifacts:
paths:
- "codequality.*"
reports:
codequality: codequality.json
when: always
expire_in: '30 days'
allow_failure: false
licensecheck:
stage: test
before_script:
- uv pip install --system -e .[test] licensecheck
script:
- licensecheck
allow_failure: true
test:
stage: test
before_script:
- uv pip install --system -e .[test]
script:
- pytest
allow_failure: true
artifacts:
when: always
paths:
- "*.mcap"
- "*.prof"
expire_in: 2 week
create_doc:
stage: test
before_script:
- apt-get update -q -y && apt-get install -y libgl1-mesa-dev
- uv pip install --system -e .[test]
script:
- pdoc ./omega_prime --html -o docs --force
artifacts:
when: always
paths:
- "docs/**/*"