Skip to content

Commit c94ac96

Browse files
GitLab CI: use python.exe on Windows.
1 parent 508b0b0 commit c94ac96

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.gitlab-ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ build:
3232
- pip3 install --user pytest
3333
- rm -r objectbox
3434
- pip3 install --user --force-reinstall dist/*.whl
35-
- python3 -m pytest
35+
- ${PYTHON} -m pytest
3636

37-
.test:linux:x64:
37+
.test-python3:
3838
extends: .test
39+
variables:
40+
PYTHON: "python3"
41+
42+
.test:linux:x64:
43+
extends: .test-python3
3944
tags: [x64, docker, linux]
4045

4146
test:linux:x64:3.7:
@@ -55,7 +60,7 @@ test:linux:x64:3.10:
5560
image: python:3.10
5661

5762
test:linux:armv7hf:
58-
extends: .test
63+
extends: .test-python3
5964
tags: [armv7hf, shell, linux, python3]
6065

6166
# aarch64 version not published
@@ -64,9 +69,11 @@ test:linux:armv7hf:
6469
# tags: [aarch64, shell, linux, python3]
6570

6671
test:mac:x64:
67-
extends: .test
72+
extends: .test-python3
6873
tags: [mac, x64, shell, python3]
6974

7075
test:windows:x64:
7176
extends: .test
72-
tags: [windows, x64, shell, python3]
77+
tags: [windows, x64, shell, python3]
78+
variables:
79+
PYTHON: "python.exe"

0 commit comments

Comments
 (0)