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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
|
include:
- project: dau/ci/pyci
file: .gitlab-ci-template.yml
variables:
WARNING1: 'ignore::pydantic.warnings.PydanticDeprecatedSince20' # Issue in https://github.com/redis/redis-om-python/issues/609
WARNING2: 'ignore::UserWarning:pydantic._internal._config' # redis-om is using deprecated configuration
IGNORE_WARNINGS: '-W ${WARNING1} -W ${WARNING2}'
.helpers:
install_bliss_demo:
- source /opt/conda/etc/profile.d/conda.sh
- source /opt/conda/etc/profile.d/mamba.sh
- git clone https://gitlab.esrf.fr/bliss/bliss.git --branch $BLISSBRANCH blissrepo
- cd blissrepo
- make demo_with_oda_env NAME=bliss LIMA_NAME=bliss_lima ODA_NAME=bliss_oda MOSCA_NAME=bliss_mosca
- cd ..
- conda activate bliss_oda
- pip install -e .[demoworker]
- conda activate bliss # must be last
- pip install -e .[democlient]
test-3.7:
extends: .test-3.7
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.8:
extends: .test-3.8
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.12:
extends: .test-3.12
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
### different blissdata versions ###
test-3.9-blissdata-1.1:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install "blissdata>=1.1,<1.2"
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.9-blissdata-1.0:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install "blissdata>=1.0,<1.1" "numpy<2"
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.9-blissdata-0.3:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install "blissdata>=0.3,<0.4"
### blissdata from repo ###
test-3.9-master:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install blissdata@git+https://gitlab.esrf.fr/bliss/bliss.git@master#subdirectory=blissdata
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.9-2.1.x:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install blissdata@git+https://gitlab.esrf.fr/bliss/bliss.git@2.1.x#subdirectory=blissdata
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test-3.9-2.0.x:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install blissdata@git+https://gitlab.esrf.fr/bliss/bliss.git@2.0.x#subdirectory=blissdata "numpy<2"
test-3.9-1.11.x:
extends: .test-3.9
before_script:
- !reference [.test-3.9, before_script]
- pip install blissdata@git+https://gitlab.esrf.fr/bliss/bliss.git@1.11.x#subdirectory=blissdata
### blissdemo from repo ###
test-blissdemo-master:
stage: test
extends: .base-lin
image: gitlab-registry.esrf.fr/dau/ci/pyci/miniconda3:latest
timeout: 1h
before_script:
- !reference [.base-lin, before_script]
- !reference [.helpers, install_bliss_demo]
script:
- bliss-demo-servers --timeout=300 &
- sleep 30
- python ci/run_bliss_scans.py
variables:
BLISSBRANCH: "master"
test-blissdemo-2.1.x:
stage: test
extends: .base-lin
image: gitlab-registry.esrf.fr/dau/ci/pyci/miniconda3:latest
timeout: 1h
before_script:
- !reference [.base-lin, before_script]
- !reference [.helpers, install_bliss_demo]
script:
- bliss-demo-servers --timeout=300 &
- sleep 30
- python ci/run_bliss_scans.py
variables:
BLISSBRANCH: "2.1.x"
test-blissdemo-2.0.x:
stage: test
extends: .base-lin
image: gitlab-registry.esrf.fr/dau/ci/pyci/miniconda3:latest
timeout: 1h
before_script:
- !reference [.base-lin, before_script]
- !reference [.helpers, install_bliss_demo]
script:
- bliss-demo-servers --timeout=300 &
- sleep 30
- python ci/run_bliss_scans.py
variables:
BLISSBRANCH: "2.0.x"
test-blissdemo-1.11.x:
stage: test
extends: .base-lin
image: gitlab-registry.esrf.fr/dau/ci/pyci/miniconda3:latest
timeout: 1h
before_script:
- !reference [.base-lin, before_script]
- !reference [.helpers, install_bliss_demo]
script:
- bliss-demo-servers --timeout=300 &
- sleep 30
- python ci/run_bliss_scans.py
variables:
BLISSBRANCH: "1.11.x"
### test package ###
build_sdist:
extends: .build_sdist
test_sdist-3.9:
extends: .test_sdist-3.9
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test_sdist-3.9-win:
extends: .test_sdist-3.9-win
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test_sdist-3.11:
extends: .test_sdist-3.11
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
test_sdist-3.11-win:
extends: .test_sdist-3.11-win
variables:
PYTEST_WARNINGS: '-W error ${IGNORE_WARNINGS}'
build_doc:
extends: .build_doc
pages:
extends: .pages
assets:
extends: .assets
|