[pre-commit.ci] pre-commit autoupdate #205
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |