Skip to content
Snippets Groups Projects
Verified Commit d007fcaa authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

build openAPI spec in tox step

parent 66b0c26b
No related branches found
No related tags found
1 merge request!34Feature/add linting
Pipeline #83253 passed
This commit is part of merge request !34. Comments created here will be created in the context of that merge request.
......@@ -31,11 +31,12 @@ run-tox-pipeline:
- pip install virtualenv
- virtualenv venv
- . venv/bin/activate
- pip install tox
script:
- pip install tox
- tox
artifacts:
paths:
- htmlcov
- docs/source/_static/openapi.json
......@@ -5,10 +5,12 @@ build-documentation:
tags:
- docker-executor
image: sphinxdoc/sphinx:latest
needs:
- job: run-tox-pipeline
artifacts: true
before_script:
- pip install sphinx_rtd_theme fastapi
- python docs/dump-openapi-spec.py
- pip install sphinx_rtd_theme
script:
- sphinx-apidoc lso lso/app.py -o docs/source -d 2 -f
- sphinx-build -b html docs/source docs/build
......
......@@ -29,3 +29,4 @@ commands =
black --check .
mypy .
flake8
python docs/dump-openapi-spec.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment