Skip to content

Commit

Permalink
Update documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry57 authored Oct 30, 2024
1 parent 935fe7a commit f118f33
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ on:

jobs:
build:
name: Build docs (Python ${{ matrix.python-version }}, Windows)
runs-on: windows-latest
# Functionality for testing documentation builds on multiple OSes and Python versions
name: Build docs (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on:
group: GENetLib
labels: GENetLib_windows-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ["windows-latest"]
python-version: ["3.9"]

steps:
# Grap the latest commit from the branch
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false

# Install Poetry and build the documentation
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -27,17 +37,10 @@ jobs:
virtualenvs-in-project: false
installer-parallel: true

- name: Install Pandoc
run: |
choco install pandoc
- name: Add Poetry to PATH
run: |
$env:PATH = "$env:APPDATA\Python\Python39\Scripts;$env:PATH"
shell: powershell

- name: Build the documentation with Sphinx
run: |
poetry install --all-extras
sudo apt install pandoc
pip install pandoc
cd docs
poetry run sphinx-build -b html source build/html
shell: powershell

0 comments on commit f118f33

Please sign in to comment.