-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox-nse.gitlab-ci.yml
47 lines (42 loc) · 1.19 KB
/
tox-nse.gitlab-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
# This is a shim to reuse NSE's CI plan optimally in HPC projects
#
# This workflow is based around a working tox configuration. Requirements
# can be handled e.g., like this:
#
# .tox-template:
# variables:
# SYS_PACKAGES: cmake git hdf5-devel java-11-openjdk ninja-build
# PRE_BUILD_COMMAND:
# sh .ci/install_morphokit.sh
# &&
# export CMAKE_PREFIX_PATH="$(<morphokit_location.txt):${CMAKE_PREFIX_PATH:+:}${CMAKE_PREFIX_PATH}"
include:
- project: nse/ci
file:
- /ci/lib/tox-docker.yml
- /ci/jobs/py311.yml
- /ci/jobs/build-package.yml
- /ci/jobs/build-wheels.yml
- /ci/jobs/publish-package.yml
workflow:
# Can't use the rules to constrain here if this pipeline is invoked in a
# parent-child context :(
rules:
- when: always
build-package:
rules:
- when: on_success
build-wheels:
parallel:
matrix:
- PY_VERSION: [py38, py39, py310]
variables:
SYS_PACKAGES: !reference [.tox-template, variables, SYS_PACKAGES]
PRE_BUILD_COMMAND: !reference [.tox-template, variables, PRE_BUILD_COMMAND]
rules:
- if: $PURE_PYTHON
when: never
- when: on_success
publish-package:
rules:
- if: $CI_COMMIT_TAG