Make Acquisition.optimize
work with discrete optimizer regardless of whether num_restarts
is in optimizer_options
#8135
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: Build and Test Workflow | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests-and-coverage: | |
name: Tests with latest BoTorch | |
uses: ./.github/workflows/reusable_test.yml | |
with: | |
pinned_botorch: false | |
secrets: inherit | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
env: | |
ALLOW_BOTORCH_LATEST: true | |
ALLOW_LATEST_GPYTORCH_LINOP: true | |
run: | | |
# use latest Botorch | |
pip install git+https://github.com/cornellius-gp/gpytorch.git | |
pip install git+https://github.com/pytorch/botorch.git | |
pip install -e ".[unittest]" | |
- name: Validate Sphinx | |
run: | | |
python scripts/validate_sphinx.py -p "${pwd}" | |
- name: Run Sphinx | |
# run even if previous step (validate Sphinx) failed | |
if: ${{ always() }} | |
run: | | |
# warnings no longer treated as errors. | |
sphinx-build -T --keep-going sphinx/source sphinx/build |