-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
59 lines (53 loc) · 1.39 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
59 lines (53 loc) · 1.39 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
stages:
- lint
- build
- test
- review
include:
- component: $CI_SERVER_FQDN/cloudflare/ci/ai/opencode@~latest
inputs:
runOnMR: true
default:
image: $IMAGE_PYTHON
workflow:
rules:
- if: $CI_COMMIT_BRANCH !~ /^(integrated\/|stl-preview-head\/|stl-preview-base\/|generated|codegen\/)/
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH =~ /^codegen\/stl\//
lint:
stage: lint
timeout: 20 minutes
rules:
- if: $CI_COMMIT_TITLE == "codegen metadata"
when: never
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH != $CI_PROJECT_PATH
script:
- uv sync --all-extras
- ./scripts/lint
build:
stage: build
timeout: 20 minutes
rules:
- if: $CI_COMMIT_TITLE == "codegen metadata"
when: never
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH != $CI_PROJECT_PATH
script:
- uv sync --all-extras
- uv build
test:
stage: test
image: $IMAGE_NODE_TRIXIE
timeout: 20 minutes
allow_failure: true
rules:
- if: $CI_COMMIT_TITLE == "codegen metadata"
when: never
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_MERGE_REQUEST_SOURCE_PROJECT_PATH != $CI_PROJECT_PATH
script:
- curl -LsSf https://astral.sh/uv/install.sh | sh
- export PATH="$HOME/.local/bin:$PATH"
- uv sync --all-extras
- ./scripts/test -n auto