-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
55 lines (52 loc) · 1.27 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
stages:
- doc
- release
lint:
image: python
stage: doc
needs: []
tags:
- docker, specific
before_script:
- python3 -m pip install .[test]
- mkdir .mypy_cache
script:
# - mypy --install-types --non-interactive
- black --check -t py310 src
pages:
image: python
stage: doc
needs: []
tags:
- docker, specific
script:
- cd docs && make html
before_script:
- python3 -m pip install .[docs]
after_script:
- mv docs/_build/html public
artifacts:
when: always
paths:
- public
release_job:
stage: release
image: python
needs: []
tags:
- docker, specific
rules:
- if: $CI_COMMIT_TAG
before_script:
- curl --location --output /usr/local/bin/release-cli
"https://release-cli-downloads.s3.amazonaws.com/latest/release-cli-linux-amd64"
- pip install twine
- chmod +x /usr/local/bin/release-cli
script:
- python setup.py sdist bdist_wheel
- TWINE_PASSWORD=${PIPY_TOKEN}
TWINE_USERNAME=__token__
python -m twine upload --skip-existing --verbose dist/*
release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'