-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
50 lines (44 loc) · 861 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
image: fedora:latest
stages:
- lint
- build
- deploy
before_script:
- python3 -V
- rpm -q fedora-release-common
- dnf install -y which python-pip gcc python3-devel dialog git
- pip install poetry
- poetry --version
- poetry config virtualenvs.in-project true
- poetry install -vv
lint-check:
stage: lint
script:
- poetry run pre-commit clean
- poetry run pre-commit run --all-files
after_script:
- git diff
build-sdist:
stage: build
script:
- poetry build -f sdist
artifacts:
paths:
- dist/*.tar.gz
publish:
stage: deploy
script:
- poetry config pypi-token.pypi ${PYPI_TOKEN}
- poetry build -f sdist
- poetry publish
only:
- tags
pages:
stage: deploy
script:
- poetry run sphinx-build -b html source public
artifacts:
paths:
- public
only:
- master