-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (42 loc) · 998 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
stages:
- test
- build
tests:
stage: test
image: python:3.11-slim-bookworm
environment: production
before_script:
- pip install pytest
script:
- pip install .
- pytest -W error test/
build:
stage: build
image: python:3.11-slim-bookworm
environment: production
before_script:
- pip install twine --upgrade
script:
- echo "Building Wheel..."
- pip install build
- python3 -m build
- python3 -m twine upload --skip-existing dist/* -u __token__ -p $PyPI_token
- echo "Wheel builded and uploaded."
only:
- main
pages:
stage: build
image: python:3.11-slim-bookworm
environment: production
before_script:
- apt-get update && apt-get install -y pandoc
- pip install sphinx nbsphinx nbsphinx-link ipython sphinx-rtd-theme
script:
- pip install -r requirements.txt
- sphinx-build -M html docs/source/ docs/build/
- mv docs/build/html public
artifacts:
paths:
- public
only:
- main