Skip to content

Commit

Permalink
GA: First step towards building docs via CI [#12]
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Feb 29, 2024
1 parent b1a64b4 commit 112d373
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on: [push, pull_request]

name: "Build and Publish Documentation"

permissions:
contents: read

jobs:
check:
if: "! contains(github.event.head_commit.message, '[ci skip]')"

timeout-minutes: 10

runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install sphinx numpydoc sphinx-autobuild sphinx-rtd-theme
- name: Install this Python package
run: |
pip install .[pydivsufsort]
- name: Session information
run: |
python --version
- name: Build documentation
run: |
cd docs
make html

0 comments on commit 112d373

Please sign in to comment.