Skip to content

Commit e545f7e

Browse files
BLD: build docs on Azure Pipelines (#909)
* try building docs on Azure Pipelines * add doc.yml conda env file * specify conda env name * fix doc -> docs * include sphinx-gallery * add pytest to env * install library to run sphinx-gallery * install full suite of pvlib dependencies * remove 'warnings as errors' flag * return standard tests to azure-pipelines.yml * fix job spacing * add to what's new * remove unused doc.yml config * use requirements-py38.yml for docbuilding * remove conda environment * more conda removal * specify python 3.8 * additional cleanup * test docs before publish, rename env build
1 parent 87d36da commit e545f7e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,22 @@ jobs:
181181
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
182182

183183

184+
- job: DocTest
185+
pool:
186+
vmImage: 'ubuntu-16.04'
187+
steps:
188+
- task: UsePythonVersion@0
189+
inputs:
190+
versionSpec: '3.8'
191+
- script: |
192+
pip install -e .[all]
193+
displayName: Install pvlib[all] for doc build
194+
- script: |
195+
cd docs/sphinx/
196+
sphinx-build -j auto -b html -d _build/doctrees source build
197+
displayName: Build HTML docs
198+
199+
184200
- job: 'Publish'
185201
dependsOn: 'Test_conda_linux'
186202
pool:

docs/sphinx/source/whatsnew/v0.7.2.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Bug fixes
3737
0.6.4 what's new file. (:issue:`898`)
3838
* Compatibility with cftime 1.1. (:issue:`895`)
3939
* Add Python3.8 to Azure Pipelines CI (:issue:`903`)(:pull:`904`)
40+
* Add documentation build test to Azure Pipelines CI (:pull:`909`)
4041
* Minor implemention changes to avoid runtime and deprecation warnings in
4142
:py:func:`~pvlib.clearsky.detect_clearsky`,
4243
:py:func:`~pvlib.iam.martin_ruiz_diffuse`,

0 commit comments

Comments
 (0)