-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
83 lines (69 loc) · 1.91 KB
/
.gitlab-ci.yml
File metadata and controls
83 lines (69 loc) · 1.91 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
# -- GWpy CI/CD pipeline
#
# The configuration below is designed (badly, probably) to
# maximise the test coverage (minimise risk of breakages)
# whilst also minimising duplicate use of CI/CD credits for
# the GWpy project or individual contributors.
#
stages:
- check
- build
- test
- conda
- docs
- deploy
default:
# all jobs are, by default, interruptible
interruptible: true
# retry all jobs at most twice when gitlab-ci fails to start the job properly
# see https://docs.gitlab.com/ee/ci/yaml/#retry
retry:
max: 2
when:
- job_execution_timeout
- runner_system_failure
- stuck_or_timeout_failure
# no job should take more than an hour
timeout: 1h
workflow:
rules:
# run for merge requests
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
# don't run on branches if there's an open merge request
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
# run on branches and tags
- if: $CI_COMMIT_BRANCH || $CI_COMMIT_TAG
# Define reusable variables
.minimum_python_version: &minimum_python_version "3.11"
.experimental_python_version: &experimental_python_version "3.14"
include:
# -- Quality assurance checks
- local: .gitlab/ci/qa.yml
inputs:
stage: check
minimum_python_version: *minimum_python_version
# -- Build
- local: .gitlab/ci/python-dist.yml
inputs:
job_name: &python_dist_job build
stage: build
# -- Test
- local: .gitlab/ci/test.yml
inputs:
minimum_python_version: *minimum_python_version
experimental_python_version: *experimental_python_version
# -- Documentation
#- local: .gitlab/ci/sphinx.yml
# inputs:
# stage: docs
# -- Deploy release
- local: .gitlab/ci/publish.yml
inputs:
stage: deploy
dependencies:
- *python_dist_job
rules:
- if: '$CI_COMMIT_MESSAGE =~ /\[skip deploy\]/'
when: never
- when: always