-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
58 lines (50 loc) · 1.1 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
image: python:latest
stages:
- format
- test
- deploy
- install
- release
format:
stage: format
script:
- pip install black
- black --check .
test:
stage: test
script:
- pip install -r requirements.txt
- python -m unittest discover -s tests
pages:
stage: deploy
before_script:
- apt-get update && apt-get install make --no-install-recommends -y && apt-get install pandoc -y
- python -m pip install sphinx furo pydata_sphinx_theme
- pip install -r requirements.txt
script:
- cd docs && make html
after_script:
- mv docs/build/html/ ./public/
artifacts:
paths:
- public
install-local:
stage: install
script:
- pip install -r requirements.txt
- pip install -e .
- python -c "import xevent"
install-public:
stage: install
script:
- pip install xevent
- python -c "import xevent"
release:
stage: release
image: python:latest
script:
- pip install twine
- python setup.py sdist bdist_wheel
- twine upload --repository pypi --skip-existing --verbose dist/* -u __token__ -p ${PYPI_API_TOKEN}
only:
- tags