Merge pull request #90 from wfdb/tp/sphinx_error #172
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
# Link repository with GitHub Actions | |
# https://docs.github.com/en/actions/learn-github-actions/introduction-to-github-actions | |
name: run-tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
python-version: ["3.10"] | |
steps: | |
# Checkout the latest code from the repo | |
# https://github.com/actions/checkout | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
# Setup which version of Python to use | |
# https://github.com/actions/setup-python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Display the Python version being used | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
# Install the dependencies for the package. | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
# Build the book | |
- name: Build the book | |
run: jupyter-book build content/ |