Skip to content

[pre-commit.ci] pre-commit autoupdate #204

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #204

---
name: build-book
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# run on pushes and pull requests to main
on:
pull_request:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-book:
if: (github.event.pull_request) && !contains(github.head_ref, 'all-contributors')
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python_version: ['3.10', '3.11', '3.12']
fail-fast: false # Don't cancel all jobs if one fails
runs-on: ${{ matrix.os }}
steps:
- name: Checkout-repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
# Build the book
- name: Build the book
run: make book