Skip to content

Commit

Permalink
feat(ci): add build docs step
Browse files Browse the repository at this point in the history
  • Loading branch information
thehappydinoa committed Aug 4, 2023
1 parent 8d89fe1 commit 248ab5b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
paths-ignore:
- "**.rst"
- "**.md"
pull_request:
branches:
Expand Down Expand Up @@ -38,6 +37,20 @@ jobs:
run: |
poetry install
- name: Get all doc files that have changed
id: changed_docs
uses: tj-actions/changed-files@v37
with:
files: |
docs
- name: Build docs
if: steps.changed_docs.outputs.modified_files == 'true'
working-directory: docs
run: |
poetry run pip install -r requirements.txt
poetry run make html
- name: Lint with flake8
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit 248ab5b

Please sign in to comment.