-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ci.yml
50 lines (43 loc) · 826 Bytes
/
.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
stages:
- build
- test
.common: &common
only:
variables:
- $CI_COMMIT_REF_NAME == "main"
- $CI_PIPELINE_SOURCE == "merge_request"
.common-python: &common_python
<<: *common
variables:
PIP_ROOT_USER_ACTION: ignore
image: 'python:3.12.5-bookworm'
before_script:
- pip install '.[dev]'
.common-js: &common_js
<<: *common
image: 'node:20.17.0-bookworm'
before_script:
- npm install -g pnpm
- pnpm config set store-dir ~/.pnpm-store
format:
stage: build
<<: *common_python
script:
- ruff format --check
build-js:
stage: build
<<: *common_js
script:
- pnpm install --frozen-lockfile
- pnpm run compile
lint:
stage: build
<<: *common_python
script:
- ruff check
- pyright
test:
stage: test
<<: *common_python
script:
- pytest