Skip to content

Commit

Permalink
CI: Add Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 23, 2020
1 parent 91d0d67 commit efc5341
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build docs and check links
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Double-check Python version
run: |
python --version
- name: Install Python package
run: |
python -m pip install .
- name: Install docs dependencies
run: |
python -m pip install -r doc/requirements.txt
- name: Build HTML
run: |
python -m sphinx doc/ _build/html/ -d _doctrees/ -W -b html
- name: Check links
run: |
python -m sphinx doc/ _build/linkcheck/ -d _doctrees/ -W -b linkcheck

0 comments on commit efc5341

Please sign in to comment.