Supports a prior acquisition function in GP_UCB_PE #142
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 workflow will upload a dev Python Package to PyPI using Twine when a main branch commit | |
# is pushed. For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | |
name: pypi-dev | |
# PyPI push triggers whenever we push a commit to main. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions. | |
run: | | |
sudo apt-get install -y libprotobuf-dev | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine==5.0.0 grpcio-tools>=1.70.0 | |
- name: Build and publish | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
python setup.py --dev sdist bdist_wheel | |
twine upload dist/* |