-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
49 lines (42 loc) · 1.02 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
49 lines (42 loc) · 1.02 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
image: python:3.10
variables:
UV_CACHE_DIR: "/tmp/.uv-cache"
UV_LINK_MODE: copy
default:
before_script:
- python -m pip install --disable-pip-version-check "uv==0.11.32"
- uv sync --locked
test:pytest:
script:
- uv run pytest --junitxml=report.xml --cov=pleque --cov-report=xml:coverage.xml --cov-report=term-missing
artifacts:
when: always
reports:
junit: report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
paths:
- report.xml
- coverage.xml
expire_in: 1 week
lint:ruff:
script:
- uv run ruff check pleque/ tests/
needs: ["test:pytest"]
typecheck:ty:
script:
- uv run ty check pleque/
needs: ["test:pytest"]
allow_failure: true
build:package:
script:
- uv build
docs:html:
before_script:
# nbsphinx converts the example notebooks with pandoc
- apt-get update
- apt-get install --yes --no-install-recommends pandoc
- !reference [default, before_script]
script:
- uv run make -C docs html