Skip to content

Commit

Permalink
Merge pull request #82 from hdmf-dev/workflow_doc
Browse files Browse the repository at this point in the history
Workflow and azure updates
  • Loading branch information
mavaylon1 authored Oct 2, 2023
2 parents 2d3443d + 2c2a346 commit e6b7438
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 17 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/doc_builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Add Check for the HDMF-Common-Schema and NWB-schema doc builds

on:
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Clone HDMF-Common-Schema and Install Requirements
run: |
git clone https://github.com/hdmf-dev/hdmf-common-schema.git
cd hdmf-common-schema
python -m pip install -r requirements-doc.txt
- name: Build HDMF-Common-Schema Docs
run: |
cd hdmf-common-schema
cd docs
make clean
make html
- name: Clone NWB-Schema and Install Requirements
run: |
git clone https://github.com/NeurodataWithoutBorders/nwb-schema.git
cd nwb-schema
python -m pip install -r requirements-doc.txt
- name: Build NWB-Schema Docs
run: |
cd nwb-schema
cd docs/format
make clean
make html
43 changes: 26 additions & 17 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
- job: 'StyleCheck'

pool:
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-latest'

steps:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
versionSpec: '3.11'
architecture: 'x64'

- script: |
Expand All @@ -32,35 +32,44 @@ jobs:

strategy:
matrix:
Linux-py3.11:
imageName: 'ubuntu-latest'
pythonVersion: '3.11'
Linux-py3.10:
imageName: 'ubuntu-latest'
pythonVersion: '3.10'
Linux-py3.9:
imageName: 'ubuntu-20.04'
imageName: 'ubuntu-latest'
pythonVersion: '3.9'
Linux-py3.8:
imageName: 'ubuntu-20.04'
imageName: 'ubuntu-latest'
pythonVersion: '3.8'
Linux-py3.7:
imageName: 'ubuntu-20.04'
pythonVersion: '3.7'

macOS-py3.11:
imageName: 'macos-latest'
pythonVersion: '3.11'
macOS-py3.10:
imageName: 'macos-latest'
pythonVersion: '3.10'
macOS-py3.9:
imageName: 'macos-10.15'
imageName: 'macos-latest'
pythonVersion: '3.9'
macOS-py3.8:
imageName: 'macos-10.15'
imageName: 'macos-latest'
pythonVersion: '3.8'
macOS-py3.7:
imageName: 'macos-10.15'
pythonVersion: '3.7'

Windows-py3.11:
imageName: 'windows-latest'
pythonVersion: '3.11'
Windows-py3.10:
imageName: 'windows-latest'
pythonVersion: '3.10'
Windows-py3.9:
imageName: 'windows-2019'
imageName: 'windows-latest'
pythonVersion: '3.9'
Windows-py3.8:
imageName: 'windows-2019'
imageName: 'windows-latest'
pythonVersion: '3.8'
Windows-py3.7:
imageName: 'windows-2019'
pythonVersion: '3.7'

pool:
vmImage: $(imageName)
Expand Down

0 comments on commit e6b7438

Please sign in to comment.