-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ci.yml
127 lines (112 loc) · 2.32 KB
/
.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright (c) 2023-2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
stages:
- test
- deploy_docs
variables:
DEBIAN_FRONTEND: noninteractive
SCALENODE_RAM: 10240
SCALENODE_CPU: 8
SCALENODE_DISK: 20
lint:
variables:
SCALENODE_RAM: 4096
SCALENODE_CPU: 4
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh lint
test_python_3_8:
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh test_python 3.8
test_python_3_9:
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh test_python 3.9
test_python_3_10:
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh test_python 3.10
test_python_3_11:
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh test_python 3.11
test_python_3_12:
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh test_python 3.12
package_test:
variables:
SCALENODE_CPU: 4
SCALENODE_RAM: 8192
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh package_dist
examples:
variables:
SCALENODE_CPU: 6
SCALENODE_RAM: 8192
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh examples
artifacts:
paths:
- examples/**/build
package_cores:
variables:
SCALENODE_CPU: 4
SCALENODE_RAM: 8192
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh package_cores
artifacts:
paths:
- core_repo/**
pyright_check:
variables:
SCALENODE_RAM: 6144
SCALENODE_CPU: 4
stage: test
image: debian:bookworm
script:
- ./.github/scripts/ci.sh pyright_check
allow_failure: true
build_docs:
variables:
SCALENODE_RAM: 18432
SCALENODE_CPU: 5
image: debian:bookworm
stage: test
script:
- ./.github/scripts/ci.sh docs
- tar cf "$CI_DOCS_ARCHIVE" -C docs/build/html/ .
artifacts:
paths:
- docs/build
- $CI_DOCS_ARCHIVE
deploy_docs:
image: debian:bookworm
variables:
GIT_STRATEGY: none
SCALENODE_RAM: 2048
SCALENODE_CPU: 1
dependencies: [ build_docs ]
stage: deploy_docs
tags: ['docs']
script: echo 'Deploying docs'
artifacts:
paths:
- $CI_DOCS_ARCHIVE
include:
- project: 'repositories/topwrap'
ref: internal_ci_yaml
file: '/internal.yml'