File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99/build
1010/dist
1111/Dockerfile
12- /docs
Original file line number Diff line number Diff line change 5454 - name : Lint and Type Checking
5555 run : docker run --rm --entrypoint="" amp pipenv run lint
5656
57+ doc :
58+ name : Documentation Building Test
59+ needs : build
60+ runs-on : ubuntu-latest
61+ steps :
62+ - uses : actions/checkout@v2
63+ - name : Get Docker Image
64+ uses : actions/download-artifact@v2
65+ with :
66+ name : image
67+ - name : Load Docker Image
68+ run : docker load < docker-image.tar
69+ - name : Build Documentation
70+ run : docker run --rm --entrypoint="" --user=0:0 amp pipenv run doc -nW --keep-going
71+
5772 push :
5873 name : Upload the Docker image to Docker Hub
5974 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pytest-aiohttp = "~= 0.3"
1010pytest-cov = " *"
1111pytest-flake8 = " *"
1212pytest-mypy = " >=0.3.3"
13+ sphinx = " *"
1314
1415[packages ]
1516aiohttp = " >= 3.5.0"
@@ -18,6 +19,7 @@ pydantic = "~= 1.1"
1819toml = " *"
1920
2021[scripts ]
22+ doc = " sphinx-build -b html docs/source docs/build/html"
2123lint = " py.test --flake8 --mypy -m 'flake8 or mypy'"
2224proxy = " python -m azafea_metrics_proxy"
2325test = " py.test --cov=azafea_metrics_proxy --cov-fail-under=99 --no-cov-on-fail -m 'not integration'"
You can’t perform that action at this time.
0 commit comments