Skip to content

Commit

Permalink
Add github actions workflow to run sphinx-build for checking (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Aug 23, 2023
1 parent cbd470f commit b23e2bf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pull-request-links.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# .github/workflows/pull-request-links.yaml

name: readthedocs/actions
on:
pull_request_target:
types:
- opened
# Execute this action only on PRs that touch
# documentation files.
# paths:
# - "docs/**"
on: [workflow_dispatch]
#pull_request_target:
# types:
# - opened
# # Execute this action only on PRs that touch
# # documentation files.
# # paths:
# # - "docs/**"

permissions:
pull-requests: write
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/sphinx-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Requirements
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Sphinx build - html
run: |
make html
- name: Sphinx build - pdf
run: |
apt install -y latexmk texlive-latex-extra
make latexpdf
- name: Sphinx build - epub
run: |
make epub

0 comments on commit b23e2bf

Please sign in to comment.