Skip to content

Commit

Permalink
Use native readthedocs build instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Aug 8, 2023
1 parent 60aa8a7 commit 147cfc3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- run: env | sort
- run: make dev-docs
- run: make docs
- run: make reports
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pages:
- env | sort
- make dev-docs
- make docs
- make reports
stage: build_release
release:
release:
Expand Down
1 change: 1 addition & 0 deletions .gitlab-ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pages:
- env | sort
- make dev-docs
- make docs
- make reports
stage: build_release
release:
release:
Expand Down
16 changes: 12 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
build:
jobs:
post_build:
- make reports
os: ubuntu-22.04
tools:
python: '3'
commands:
- pip install --upgrade pip
- make dev-docs
- make docs
formats:
- pdf
- epub
python:
install:
- extra_requirements:
- docs
method: pip
path: .
version: 2
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"automodule",
"cobertura",
"codecov",
"epub",
"huxuan",
"interruptible",
"isort",
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean deepclean install dev version pre-commit lint black mypy ruff toml-sort tests freeze build upload docs docs-autobuild
.PHONY: clean deepclean install dev version pre-commit lint black mypy ruff toml-sort tests freeze build upload docs docs-autobuild reports

# Construct pipenv run command with or without site-packages flag when not in CI environment and pipenv command exists.
SITE_PACKAGES_FLAG = $(shell [ "${SS_SITE_PACKAGES}" = "true" ] && echo --site-packages)
Expand Down Expand Up @@ -74,8 +74,10 @@ upload:

docs:
${PIPRUN} python -m sphinx.cmd.build docs ${PUBLIC_DIR}
${PIPRUN} python -m mypy tests src --html-report ${PUBLIC_DIR}/reports/mypy
${PIPRUN} python -m pytest --cov-report html:${PUBLIC_DIR}/reports/coverage .

docs-autobuild:
${PIPRUN} python -m sphinx_autobuild docs ${PUBLIC_DIR} --watch src

reports:
${PIPRUN} python -m mypy tests src --html-report ${PUBLIC_DIR}/reports/mypy
${PIPRUN} python -m pytest --cov-report html:${PUBLIC_DIR}/reports/coverage .

0 comments on commit 147cfc3

Please sign in to comment.