-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
78 lines (65 loc) · 1.38 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
stages:
- test
- build
pages:
image: zoo.smok.co/build/build:latest
stage: build
script:
- cd docs
- sphinx-apidoc -o . ../satella
- make html
- cd ..
- mv docs/_build/html public
artifacts:
paths:
- public
.test:
stage: test
before_script:
- pip install --break-system-packages --upgrade pytest setuptools pip coverage nose2
- pip install ".[dev,test]"
script:
- pytest -n 8 -vv --cov=satella
- coverage xml
- coverage report
coverage: /TOTAL.*\s+(\d+\%)/
test_python37:
extends: .test
image: python:3.7
allow_failure: true
test_python38:
extends: .test
image: python:3.8
test_python39:
extends: .test
image: python:3.9
test_pypy310:
extends: .test
image: pypy:3.10
when: manual
test_pypy39:
extends: .test
image: pypy:3.9
when: manual
test_python310:
extends: .test
image: python:3.10
test_python311:
extends: .test
image: python:3.11
build_python:
stage: build
before_script:
- pip install --break-system-packages --upgrade setuptools pip twine
script:
- python setup.py bdist_wheel
- mv dist/*.whl .
artifacts:
paths:
- "*.whl"
after_script:
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi *.whl
only:
- tags
except:
- branches