improve ensembling robustness and documentation (#119) #207
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
# 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 |