Skip to content

Commit f02a8b4

Browse files
committed
Merge branch '3-fix-ci' into dev
2 parents 4de7d80 + 0f566ad commit f02a8b4

File tree

2 files changed

+24
-36
lines changed

2 files changed

+24
-36
lines changed

.gitlab-ci.yml

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ stages:
22
- build
33
- test
44

5+
# First, build the source and package it as a python wheel
56
build:
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

7259
test:mac:x64:
73-
extends: .test-python3
60+
extends: .test
7461
tags: [mac, x64, shell, python3]
75-
script:
76-
- make depend
77-
- make test
7862

7963
test:windows:x64:
8064
extends: .test

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
"Programming Language :: Python :: 3.7",
2929
"Programming Language :: Python :: 3.8",
3030
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
3133
"Programming Language :: C",
3234
"Programming Language :: C++",
3335

@@ -54,8 +56,10 @@
5456
'objectbox': [
5557
# Linux, macOS
5658
'lib/x86_64/*',
59+
'lib/aarch64/*',
5760
'lib/armv7l/*',
5861
'lib/armv6l/*',
62+
'lib/macos-universal/*',
5963
# Windows
6064
'lib/AMD64/*',
6165
],

0 commit comments

Comments
 (0)