-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
13,090 additions
and
9,275 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Publish Website | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
new_version: | ||
required: false | ||
type: string | ||
run_tutorials: | ||
required: false | ||
type: boolean | ||
default: false | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
build-website: | ||
runs-on: ubuntu-latest | ||
env: | ||
# `uv pip ...` requires venv by default. This skips that requirement. | ||
UV_SYSTEM_PYTHON: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: 'docusaurus-versions' # release branch | ||
fetch-depth: 0 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Sync release branch with main | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git merge origin/main | ||
# To avoid a large number of commits we don't push this sync commit to github until a new release. | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- if: ${{ !inputs.new_version }} | ||
name: Install latest GPyTorch and Linear Operator | ||
run: | | ||
uv pip install git+https://github.com/cornellius-gp/linear_operator.git | ||
uv pip install git+https://github.com/cornellius-gp/gpytorch.git | ||
- name: Install dependencies | ||
env: | ||
ALLOW_LATEST_GPYTORCH_LINOP: true | ||
ALLOW_BOTORCH_LATEST: true # Allow Ax to install w/ new BoTorch release. | ||
run: | | ||
uv pip install ."[dev, tutorials]" | ||
# There may not be a compatible Ax uv pip version, so we use the development version. | ||
uv pip install git+https://github.com/facebook/Ax.git | ||
- if: ${{ inputs.new_version }} | ||
name: Create new docusaurus version | ||
run: | | ||
python3 scripts/convert_ipynb_to_mdx.py --clean | ||
cd website | ||
yarn | ||
yarn docusaurus docs:version ${{ inputs.new_version }} | ||
git add --all | ||
git commit -m "Create version ${{ inputs.new_version }} of site in Docusaurus" | ||
git push --force origin HEAD:docusaurus-versions | ||
- name: Build website | ||
run: | | ||
bash scripts/build_docs.sh -b | ||
- name: Upload website build as artifact | ||
id: deployment | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: website/build/ | ||
|
||
deploy-website: | ||
needs: build-website | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "2" | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "3.12" | ||
jobs: | ||
post_install: | ||
# Install latest botorch if not on a released version | ||
- | | ||
tag=$(eval "git name-rev --name-only --tags HEAD") | ||
if [ $tag = "undefined" ]; then | ||
pip install git+https://github.com/cornellius-gp/linear_operator.git | ||
pip install git+https://github.com/cornellius-gp/gpytorch.git | ||
fi | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev | ||
|
||
sphinx: | ||
configuration: sphinx/source/conf.py |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.