Skip to content

Commit 4ec1fd4

Browse files
committed
Run docs test on azure pipelines
Signed-off-by: Jono Yang <[email protected]>
1 parent eb6c708 commit 4ec1fd4

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ docs:
154154
rm -rf docs/_build/
155155
@${ACTIVATE} sphinx-build docs/source docs/_build/
156156

157+
check_docs:
158+
@${ACTIVATE} sphinx-build -E -W docs/source build
159+
@${ACTIVATE} docs/scripts/doc8_style_check.sh
160+
157161
docker-images:
158162
@echo "-> Build Docker services"
159163
docker-compose build

azure-pipelines.yml

+8
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ jobs:
3232
python_versions: ['3.10', '3.11', '3.12']
3333
test_suites:
3434
all: make test
35+
36+
- template: etc/ci/azure-posix.yml
37+
parameters:
38+
job_name: ubuntu22_cpython
39+
image_name: ubuntu-22.04
40+
python_versions: ['3.10']
41+
test_suites:
42+
docs: make check_docs

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CUSTOM_PACKAGES=""
3131

3232
# Requirement arguments passed to pip and used by default or with --dev.
3333
REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/ --editable purl2vcs/ --editable . --constraint requirements.txt"
34-
DEV_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/[testing] --editable .[testing] --editable purl2vcs/[testing] --constraint requirements.txt --constraint requirements-dev.txt"
34+
DEV_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/[testing] --editable .[testing,docs] --editable purl2vcs/[testing] --constraint requirements.txt --constraint requirements-dev.txt"
3535
DOCS_REQUIREMENTS="$CUSTOM_PACKAGES --editable purldb-toolkit/ --editable .[docs] --constraint requirements.txt"
3636

3737
# where we create a virtualenv

0 commit comments

Comments
 (0)