forked from NVIDIA/earth2studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
102 lines (94 loc) · 1.74 KB
/
.gitlab-ci.yml
File metadata and controls
102 lines (94 loc) · 1.74 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
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
stages:
- pre
- build
- lint
- test
- report
- docs
workflow:
name: $PIPELINE_WORKFLOW_NAME
build-ci-env:
stage: build
needs: []
tags:
- docker
extends:
- .earth2studio:build-env:base
- .build-env:cache
script:
- make setup-ci
format:
stage: lint
needs:
- job: build-ci-env
artifacts: false
tags:
- docker
extends:
- .earth2studio:test:base
- .lint:cache
script:
- ls
- make format
lint:
stage: lint
needs:
- job: build-ci-env
artifacts: false
tags:
- docker
extends:
- .earth2studio:test:base
- .lint:cache
script:
- make interrogate
- make lint
- make license
test:
stage: test
needs:
- job: format
artifacts: false
- job: lint
artifacts: false
tags:
- docker
extends:
- .earth2studio:test:base
retry:
max: 2
exit_codes: 123
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $PIPELINE_REPO_SOURCE != "github"'
variables:
TESTMON_CACHE_POLICY: pull-push
EARTH2STUDIO_CACHE_POLICY: pull-push
UV_CACHE_POLICY: pull-push
- if: $PIPELINE_REPO_SOURCE != "github"
variables:
EARTH2STUDIO_CACHE_POLICY: pull-push
UV_CACHE_POLICY: pull-push
- when: on_success
script:
- uv run python test/_ci/check_gpu.py || exit $?
- make pytest-ci
coverage:
stage: report
allow_failure: true
needs:
- job: test
artifacts: true
optional: false
tags:
- docker
extends:
- .earth2studio:test:base
- .coverage:cache
script:
- ls -a
- make setup-ci
- make coverage 2>&1 | tee ../blossom.log
include:
- project: 'modulus/modulus-ci'
ref: ngeneva/e2s-rework
file: '.gitlab-ci/earth2studio/common.gitlab-ci.yml'