22 - build
33 - test
44
5+ # First, build the source and package it as a python wheel
56build :
67 tags : [x64, docker, linux]
78 image : python:latest
@@ -26,55 +27,38 @@ build:
2627 paths :
2728 - dist/*.whl
2829
30+ # Next, test the packaged wheel built by "build"
2931.test :
3032 stage : test
3133 script :
32- - pip3 install --user pytest
33- - pip3 install --user numpy
34- - rm -r objectbox
35- - pip3 install --user --force-reinstall dist/*.whl
34+ - pip3 install --user pytest numpy
35+ - rm -r objectbox # todo this is ugly; let's copy required files in a sub-folder instead?
36+ - pip3 install --user --force-reinstall dist/*.whl # Artifacts from the previous stage (downloaded by default)
3637 - ${PYTHON} -m pytest
37-
38- .test-python3 :
39- extends : .test
4038 variables :
4139 PYTHON : " python3"
4240
43- . test:linux:x64 :
44- extends : .test-python3
41+ test:linux:x64 :
42+ extends : .test
4543 tags : [x64, docker, linux]
44+ image : python:$PYTHON_VERSION
45+ parallel :
46+ matrix :
47+ # Note: Docker images will have an arbitrary minor version due to "if-not-present" pull policy.
48+ # If this becomes a problem, we could e.g. specify a minor version explicitly.
49+ - PYTHON_VERSION : [ '3.7', '3.8', '3.9', '3.10', '3.11']
4650
47- test:linux:x64:3.7 :
48- extends : .test:linux:x64
49- image : python:3.7
50-
51- test:linux:x64:3.8 :
52- extends : .test:linux:x64
53- image : python:3.8
54-
55- test:linux:x64:3.9 :
56- extends : .test:linux:x64
57- image : python:3.9
58-
59- test:linux:x64:3.10 :
60- extends : .test:linux:x64
61- image : python:3.10
51+ test:linux:armv7hf :
52+ extends : .test
53+ tags : [armv7hf, shell, linux, python3]
6254
63- # test:linux:armv7hf:
64- # extends: .test-python3
65- # tags: [armv7hf, shell, linux, python3]
66-
67- # aarch64 version not published
68- # test:linux:aarch64:
69- # extends: .test
70- # tags: [aarch64, shell, linux, python3]
55+ test:linux:aarch64 :
56+ extends : .test
57+ tags : [aarch64, shell, linux, python3]
7158
7259test:mac:x64 :
73- extends : .test-python3
60+ extends : .test
7461 tags : [mac, x64, shell, python3]
75- script :
76- - make depend
77- - make test
7862
7963test:windows:x64 :
8064 extends : .test
0 commit comments