Skip to content

Fix documentation workflow #176

Fix documentation workflow

Fix documentation workflow #176

Workflow file for this run

# Check that package builds
name: Build Checks
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install build dependencies
run: >-
python -m pip install --user --upgrade setuptools wheel build
- name: Check package builds
run: >-
python -m build
- name: Install minimal pytorch
run: |
# This is done separately with CPU instructions
# to avoid installing extra libraries (e.g. cuda)
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Install hippynn
run: >-
python -m pip install .
- name: Check import hippynn
run: >-
python -c "import hippynn"
- name: Install documentation dependencies
run: >-
python -m pip install .[docs]
- name: Check documentation builds
run: |
cd docs
make html_all