Reusable Tutorials Workflow #1
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: 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 |