-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.gitlab-ci.yml
57 lines (49 loc) · 1004 Bytes
/
.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
50
51
52
53
54
55
56
image: "debian:bookworm"
before_script:
- apt-get update -y
- apt-get install -y make sfst python3 python3-pip python3-venv locales git
- python3 -m venv .venv
- source .venv/bin/activate
- locale-gen ml_IN.UTF-8
stages:
- build
- test
- publish
build:
stage: build
script:
- make
artifacts:
paths:
- malayalam.a
- python/dist/
test:
stage: test
script:
- LC_ALL=ml_IN.UTF-8 make test
dependencies:
- build
test:python:
stage: test
image: docker.io/python:$PYTHON_VERSIONS
before_script:
- echo "Pass. Just overriding"
parallel:
matrix:
- PYTHON_VERSIONS: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
script:
- pip install tox
- tox -e py -c python/tox.ini
dependencies:
- build
publish:
stage: publish
before_script:
- echo "Pass. Just overriding"
script:
- pip install twine
- twine upload dist/* --username __token__ --password $PYPI_API_KEY
dependencies:
- build
only:
- tags