From 0a79de560e8b46028a91ef6c99d989aa39c3d7be Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 16:34:11 -0700 Subject: [PATCH 01/19] try building docs on Azure Pipelines --- azure-pipelines.yml | 185 ++------------------------------------------ 1 file changed, 8 insertions(+), 177 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 99a9879bf4..c1ea2e52eb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,191 +6,22 @@ trigger: jobs: -- job: 'Test_bare_linux' +- job: Docs pool: vmImage: 'ubuntu-16.04' - strategy: - matrix: - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' - Python38: - python.version: '3.8' - - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - - - script: | - pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata - pip install -e . - pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html - displayName: 'Test with pytest' - - - task: PublishTestResults@2 - condition: succeededOrFailed() - inputs: - testResultsFiles: '**/test-*.xml' - testRunTitle: 'Publish test results for Python $(python.version)' - - - task: PublishCodeCoverageResults@1 - inputs: - codeCoverageTool: Cobertura - summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' - - -- job: 'Test_conda_linux' - - pool: - vmImage: 'ubuntu-16.04' - - strategy: - matrix: - Python35: - python.version: '35' - Python36: - python.version: '36' - coverage: true - Python37: - python.version: '37' - Python38: - python.version: '38' - steps: - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" displayName: Add conda to PATH - - script: conda env create --quiet --file ci/requirements-py$(python.version).yml + - script: conda env create --quiet --file ci/doc.yml displayName: Create Anaconda environment - script: | source activate test_env - pip install pytest-azurepipelines - pip install -e . - displayName: 'pip dependencies' - - script: | - source activate test_env - conda list - displayName: 'List installed dependencies' + # Replicate the exact environment created by the readthedocs CI + conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme + displayName: Replicate readthedocs CI environment - script: | source activate test_env - export NREL_API_KEY=$(nrelApiKey) - pytest pvlib --remote-data --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html - displayName: 'pytest' - # - script: | - # source activate test_env - # flake8 pvlib - # displayName: 'flake8' - - task: PublishTestResults@2 - inputs: - testResultsFiles: '**/test-results.xml' - testRunTitle: 'Linux $(python.version)' - - task: PublishCodeCoverageResults@1 - inputs: - codeCoverageTool: Cobertura - summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' - condition: eq(variables['coverage'], true) - - script: | - bash <(curl https://codecov.io/bash) -t bbc2bdbe-5e67-4fef-9cb7-f52fe0b703a8 -f coverage.xml -F adder -F subtractor -F conda - displayName: 'codecov' - condition: eq(variables['coverage'], true) - - -- job: 'Test_conda_windows' - - pool: - vmImage: 'vs2017-win2016' - - strategy: - matrix: - Python35-windows: - python.version: '35' - Python36-windows: - python.version: '36' - Python37-windows: - python.version: '37' - Python38-windows: - python.version: '38' - - steps: - - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" - displayName: Add conda to PATH - - script: conda env create --quiet --file ci/requirements-py$(python.version).yml - displayName: Create Anaconda environment - - script: | - call activate test_env - pip install pytest-azurepipelines - pip install -e . - displayName: 'pip dependencies' - - script: | - call activate test_env - conda list - displayName: 'List installed dependencies' - - script: | - call activate test_env - pytest pvlib --junitxml=junit/test-results.xml - displayName: 'pytest' - - task: PublishTestResults@2 - inputs: - testResultsFiles: '**/test-results.xml' - testRunTitle: 'Windows $(python.version)' - - -- job: 'Test_bare_macOS_Mojave' - - pool: - vmImage: 'macOS-10.14' - strategy: - matrix: - Python35: - python.version: '3.5' - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' - Python38: - python.version: '3.8' - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - - - script: | - pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata - pip install -e . - pytest pvlib --junitxml=junit/test-results.xml --cov=pvlib --cov-report=xml --cov-report=html - displayName: 'Test with pytest' - - - task: PublishTestResults@2 - condition: succeededOrFailed() - inputs: - testResultsFiles: '**/test-*.xml' - testRunTitle: 'Publish test results for Python $(python.version)' - - - task: PublishCodeCoverageResults@1 - inputs: - codeCoverageTool: Cobertura - summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' - - -- job: 'Publish' - dependsOn: 'Test_conda_linux' - pool: - vmImage: 'ubuntu-latest' - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.x' - architecture: 'x64' - - - script: python setup.py sdist - displayName: 'Build sdist' + cd doc/sphinx/ + sphinx-build -W --keep-going -j auto -b html -d _build/doctrees source build + displayName: Build HTML docs From b72d2bab26bcd5a70f00e7346e575763d944fb9c Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:04:42 -0700 Subject: [PATCH 02/19] add doc.yml conda env file --- ci/doc.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ci/doc.yml diff --git a/ci/doc.yml b/ci/doc.yml new file mode 100644 index 0000000000..2c44e754cc --- /dev/null +++ b/ci/doc.yml @@ -0,0 +1,26 @@ +name: xarray-docs +channels: + # Don't change to pkgs/main, as it causes random timeouts in readthedocs + - conda-forge +dependencies: + - python=3.8 + - bottleneck + - cartopy + - cfgrib + - h5netcdf + - ipykernel + - ipython + - iris + - jupyter_client + - nbsphinx + - netcdf4 + - numba + - numpy + - numpydoc + - pandas + - rasterio + - seaborn + - setuptools + - sphinx + - sphinx_rtd_theme + - zarr From de103d863f2d43249e16038a69e0e31cfd61fc01 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:13:47 -0700 Subject: [PATCH 03/19] specify conda env name --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c1ea2e52eb..c610c2e365 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ jobs: steps: - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" displayName: Add conda to PATH - - script: conda env create --quiet --file ci/doc.yml + - script: conda env create -n test_env --quiet --file ci/doc.yml displayName: Create Anaconda environment - script: | source activate test_env From e1c954bb4b9eaa6ba5a88109044b3d5e53b8c62c Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:15:46 -0700 Subject: [PATCH 04/19] fix doc -> docs --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c610c2e365..86b08d7229 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,6 +22,6 @@ jobs: displayName: Replicate readthedocs CI environment - script: | source activate test_env - cd doc/sphinx/ + cd docs/sphinx/ sphinx-build -W --keep-going -j auto -b html -d _build/doctrees source build displayName: Build HTML docs From 087bf98b477cf36e0149a1a7c8f8191fb9bf7c15 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:21:22 -0700 Subject: [PATCH 05/19] include sphinx-gallery --- ci/doc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/doc.yml b/ci/doc.yml index 2c44e754cc..03b34ac6a9 100644 --- a/ci/doc.yml +++ b/ci/doc.yml @@ -23,4 +23,5 @@ dependencies: - setuptools - sphinx - sphinx_rtd_theme + - sphinx-gallery - zarr From ca3c406b30ac965d754ebeb79081a493b4315b24 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:28:06 -0700 Subject: [PATCH 06/19] add pytest to env --- ci/doc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/doc.yml b/ci/doc.yml index 03b34ac6a9..a9e2c081cc 100644 --- a/ci/doc.yml +++ b/ci/doc.yml @@ -18,6 +18,7 @@ dependencies: - numpy - numpydoc - pandas + - pytest - rasterio - seaborn - setuptools From 0d6d0851fcd272953641c59c034f7f137e0082b1 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 17:45:10 -0700 Subject: [PATCH 07/19] install library to run sphinx-gallery --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 86b08d7229..471d622aa7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,6 +19,7 @@ jobs: source activate test_env # Replicate the exact environment created by the readthedocs CI conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme + pip install -e . displayName: Replicate readthedocs CI environment - script: | source activate test_env From 60079da9962de78136cf37ddfe89f99a235543fd Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 18:05:57 -0700 Subject: [PATCH 08/19] install full suite of pvlib dependencies --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 471d622aa7..f25063b311 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,8 +18,8 @@ jobs: - script: | source activate test_env # Replicate the exact environment created by the readthedocs CI - conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme - pip install -e . + # conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme + pip install -e .[all] displayName: Replicate readthedocs CI environment - script: | source activate test_env From 4c6f69112984c31377a14b7cc341ee5f0f132075 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 20:56:30 -0700 Subject: [PATCH 09/19] remove 'warnings as errors' flag --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f25063b311..f7d03d33a3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,5 +24,5 @@ jobs: - script: | source activate test_env cd docs/sphinx/ - sphinx-build -W --keep-going -j auto -b html -d _build/doctrees source build + sphinx-build -j auto -b html -d _build/doctrees source build displayName: Build HTML docs From 97b28cac3655f4b42e23fa81a1ba9a0afeecdf47 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Sun, 23 Feb 2020 21:20:36 -0700 Subject: [PATCH 10/19] return standard tests to azure-pipelines.yml --- azure-pipelines.yml | 190 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 189 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f7d03d33a3..59d6f3a444 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,196 @@ trigger: jobs: +- job: 'Test_bare_linux' -- job: Docs + pool: + vmImage: 'ubuntu-16.04' + strategy: + matrix: + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + Python38: + python.version: '3.8' + + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + + - script: | + pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata + pip install -e . + pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html + displayName: 'Test with pytest' + + - task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testResultsFiles: '**/test-*.xml' + testRunTitle: 'Publish test results for Python $(python.version)' + + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' + + +- job: 'Test_conda_linux' + + pool: + vmImage: 'ubuntu-16.04' + + strategy: + matrix: + Python35: + python.version: '35' + Python36: + python.version: '36' + coverage: true + Python37: + python.version: '37' + Python38: + python.version: '38' + + steps: + - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" + displayName: Add conda to PATH + - script: conda env create --quiet --file ci/requirements-py$(python.version).yml + displayName: Create Anaconda environment + - script: | + source activate test_env + pip install pytest-azurepipelines + pip install -e . + displayName: 'pip dependencies' + - script: | + source activate test_env + conda list + displayName: 'List installed dependencies' + - script: | + source activate test_env + export NREL_API_KEY=$(nrelApiKey) + pytest pvlib --remote-data --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html + displayName: 'pytest' + # - script: | + # source activate test_env + # flake8 pvlib + # displayName: 'flake8' + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/test-results.xml' + testRunTitle: 'Linux $(python.version)' + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' + condition: eq(variables['coverage'], true) + - script: | + bash <(curl https://codecov.io/bash) -t bbc2bdbe-5e67-4fef-9cb7-f52fe0b703a8 -f coverage.xml -F adder -F subtractor -F conda + displayName: 'codecov' + condition: eq(variables['coverage'], true) + + +- job: 'Test_conda_windows' + + pool: + vmImage: 'vs2017-win2016' + + strategy: + matrix: + Python35-windows: + python.version: '35' + Python36-windows: + python.version: '36' + Python37-windows: + python.version: '37' + Python38-windows: + python.version: '38' + + steps: + - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" + displayName: Add conda to PATH + - script: conda env create --quiet --file ci/requirements-py$(python.version).yml + displayName: Create Anaconda environment + - script: | + call activate test_env + pip install pytest-azurepipelines + pip install -e . + displayName: 'pip dependencies' + - script: | + call activate test_env + conda list + displayName: 'List installed dependencies' + - script: | + call activate test_env + pytest pvlib --junitxml=junit/test-results.xml + displayName: 'pytest' + - task: PublishTestResults@2 + inputs: + testResultsFiles: '**/test-results.xml' + testRunTitle: 'Windows $(python.version)' + + +- job: 'Test_bare_macOS_Mojave' + + pool: + vmImage: 'macOS-10.14' + strategy: + matrix: + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + Python38: + python.version: '3.8' + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + + - script: | + pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata + pip install -e . + pytest pvlib --junitxml=junit/test-results.xml --cov=pvlib --cov-report=xml --cov-report=html + displayName: 'Test with pytest' + + - task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testResultsFiles: '**/test-*.xml' + testRunTitle: 'Publish test results for Python $(python.version)' + + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' + + +- job: 'Publish' + dependsOn: 'Test_conda_linux' + pool: + vmImage: 'ubuntu-latest' + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.x' + architecture: 'x64' + + - script: python setup.py sdist + displayName: 'Build sdist' + +- job: DocsTest pool: vmImage: 'ubuntu-16.04' steps: From e5203a8674d20c12fe426a69552dbf06bdc0d392 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Mon, 24 Feb 2020 22:23:26 -0700 Subject: [PATCH 11/19] fix job spacing --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 59d6f3a444..e907c5025c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -195,6 +195,7 @@ jobs: - script: python setup.py sdist displayName: 'Build sdist' + - job: DocsTest pool: vmImage: 'ubuntu-16.04' From fc86bc92c4e737d4dec2293d7089b3b279555b40 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Mon, 24 Feb 2020 22:26:43 -0700 Subject: [PATCH 12/19] add to what's new --- docs/sphinx/source/whatsnew/v0.7.2.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sphinx/source/whatsnew/v0.7.2.rst b/docs/sphinx/source/whatsnew/v0.7.2.rst index f788c6bf0d..d5c60ee4ca 100644 --- a/docs/sphinx/source/whatsnew/v0.7.2.rst +++ b/docs/sphinx/source/whatsnew/v0.7.2.rst @@ -34,6 +34,7 @@ Bug fixes 0.6.4 what's new file. (:issue:`898`) * Compatibility with cftime 1.1. (:issue:`895`) * Add Python3.8 to Azure Pipelines CI (:issue:`903`)(:pull:`904`) +* Add documentation build test to Azure Pipelines CI (:pull:`909`) Documentation From 6e2c13d4b2cb4ec27ff132007f250982db3bf318 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 25 Feb 2020 10:31:26 -0700 Subject: [PATCH 13/19] remove unused doc.yml config --- ci/doc.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 ci/doc.yml diff --git a/ci/doc.yml b/ci/doc.yml deleted file mode 100644 index a9e2c081cc..0000000000 --- a/ci/doc.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: xarray-docs -channels: - # Don't change to pkgs/main, as it causes random timeouts in readthedocs - - conda-forge -dependencies: - - python=3.8 - - bottleneck - - cartopy - - cfgrib - - h5netcdf - - ipykernel - - ipython - - iris - - jupyter_client - - nbsphinx - - netcdf4 - - numba - - numpy - - numpydoc - - pandas - - pytest - - rasterio - - seaborn - - setuptools - - sphinx - - sphinx_rtd_theme - - sphinx-gallery - - zarr From 98e18d41e4e2f739e0f9920cb5d8b63f54c16abc Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 25 Feb 2020 15:07:29 -0700 Subject: [PATCH 14/19] use requirements-py38.yml for docbuilding --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e907c5025c..5210a95908 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -202,12 +202,11 @@ jobs: steps: - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" displayName: Add conda to PATH - - script: conda env create -n test_env --quiet --file ci/doc.yml + - script: conda env create -n test_env --quiet --file ci/requirements-py38.yml displayName: Create Anaconda environment - script: | source activate test_env # Replicate the exact environment created by the readthedocs CI - # conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme pip install -e .[all] displayName: Replicate readthedocs CI environment - script: | From f7e17cc70ec983d0a02c4ab3d2695a35b2cab68e Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 25 Feb 2020 15:22:46 -0700 Subject: [PATCH 15/19] remove conda environment --- azure-pipelines.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5210a95908..c60c9d7a40 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -200,12 +200,7 @@ jobs: pool: vmImage: 'ubuntu-16.04' steps: - - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" - displayName: Add conda to PATH - - script: conda env create -n test_env --quiet --file ci/requirements-py38.yml - displayName: Create Anaconda environment - script: | - source activate test_env # Replicate the exact environment created by the readthedocs CI pip install -e .[all] displayName: Replicate readthedocs CI environment From 5bbfad25beba5c5dc13a582cdb7cb6c741544a44 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 25 Feb 2020 16:00:50 -0700 Subject: [PATCH 16/19] more conda removal --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c60c9d7a40..2d279e9f60 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -205,7 +205,6 @@ jobs: pip install -e .[all] displayName: Replicate readthedocs CI environment - script: | - source activate test_env cd docs/sphinx/ sphinx-build -j auto -b html -d _build/doctrees source build displayName: Build HTML docs From fbb2a7a3a803f9437aa4164155fa1517cd839888 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 25 Feb 2020 22:46:29 -0700 Subject: [PATCH 17/19] specify python 3.8 --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d279e9f60..669acece9e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -200,6 +200,9 @@ jobs: pool: vmImage: 'ubuntu-16.04' steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.8' - script: | # Replicate the exact environment created by the readthedocs CI pip install -e .[all] From 19c49f6d58bf32b733d3252a2e5767760c8e73ec Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Wed, 26 Feb 2020 08:40:27 -0700 Subject: [PATCH 18/19] additional cleanup --- azure-pipelines.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 669acece9e..fc627c349c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -204,7 +204,6 @@ jobs: inputs: versionSpec: '3.8' - script: | - # Replicate the exact environment created by the readthedocs CI pip install -e .[all] displayName: Replicate readthedocs CI environment - script: | From fe934090ad6eab563670c952f4e1510da95ead36 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Wed, 26 Feb 2020 16:11:26 -0700 Subject: [PATCH 19/19] test docs before publish, rename env build --- azure-pipelines.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fc627c349c..dd962d0585 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -181,6 +181,22 @@ jobs: reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' +- job: DocTest + pool: + vmImage: 'ubuntu-16.04' + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.8' + - script: | + pip install -e .[all] + displayName: Install pvlib[all] for doc build + - script: | + cd docs/sphinx/ + sphinx-build -j auto -b html -d _build/doctrees source build + displayName: Build HTML docs + + - job: 'Publish' dependsOn: 'Test_conda_linux' pool: @@ -194,19 +210,3 @@ jobs: - script: python setup.py sdist displayName: 'Build sdist' - - -- job: DocsTest - pool: - vmImage: 'ubuntu-16.04' - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.8' - - script: | - pip install -e .[all] - displayName: Replicate readthedocs CI environment - - script: | - cd docs/sphinx/ - sphinx-build -j auto -b html -d _build/doctrees source build - displayName: Build HTML docs