Skip to content

Commit

Permalink
Use apt to provide sphinx and improve the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Mar 5, 2024
1 parent 7904e36 commit 2011e4d
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,25 @@
name: Build documentation

permissions:
contents: read

on:
push:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
push:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master

jobs:
build-docs:
name: Build on python ${{ matrix.python-version }} and ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.x"]
os: [ubuntu-latest]
name: Build the documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Use python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
with:
python-version: ${{ matrix.python-version }}
submodules: true
- name: Install Sphinx
run: pip install Sphinx
run: sudo apt install sphinx-doc
- name: Install gettext
run: sudo apt-get install -y gettext
- name: Build the documentation
Expand Down

0 comments on commit 2011e4d

Please sign in to comment.