Skip to content

torchquad v0.5.0

torchquad v0.5.0 #39

name: Upload Python Package to Test PyPI
on:
workflow_dispatch:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install build twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build and publish to Test PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
TORCHQUAD_RELEASE_BUILD: "True"
run: |
python -m build
twine upload -r testpypi dist/*