Skip to content

Reusable Tutorials Workflow #1

Reusable Tutorials Workflow

Reusable Tutorials Workflow #1

name: Reusable Tutorials Workflow
on:
workflow_dispatch:
inputs:
smoke_test:
required: true
type: boolean
workflow_call:
inputs:
smoke_test:
required: true
type: boolean
jobs:
build-tutorials-with-pinned-botorch:
name: Tutorials with pinned BoTorch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
# will install the version of Botorch that is pinned in setup.py
pip install -e ".[tutorial]"
- if: ${{ inputs.smoke_test }}
name: Build tutorials with smoke test
run: |
python scripts/make_tutorials.py -w $(pwd) -e -s
- if: ${{ !inputs.smoke_test }}
name: Build tutorials without smoke test
run: |
python scripts/make_tutorials.py -w $(pwd) -e