-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
49 lines (46 loc) · 1.16 KB
/
.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
48
49
stages:
- test
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_DEPTH: 1
test:
stage: test
image: python:$VERSION
script:
- echo "Testing on Python $VERSION"
- python --version
- curl -sSL https://install.python-poetry.org | python -
- export PATH="/root/.local/bin:$PATH"
- poetry update
- poetry build
- poetry install -v
- poetry run invoke test
only:
- master
parallel:
matrix:
- VERSION: ['3.10', '3.11', '3.12']
deploy_to_pypi:
stage: deploy
image: $ARCH/python:$VERSION
script:
- echo "Building for Python $VERSION on $ARCH"
- curl -sSL https://install.python-poetry.org | python -
- export PATH="/root/.local/bin:$PATH"
- poetry update
- poetry build
- poetry config pypi-token.pypi $PYPI_API_TOKEN
- poetry publish --skip-existing
only:
- master
parallel:
matrix:
- ARCH: amd64
VERSION: ['3.9', '3.10', '3.11', '3.12']
- ARCH: i386
VERSION: ['3.9', '3.10', '3.11', '3.12']
- ARCH: arm32v7
VERSION: ['3.9', '3.10', '3.11', '3.12']
- ARCH: arm64v8
VERSION: ['3.9', '3.10', '3.11', '3.12']