Update setup.py #4
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: Python CI | |
"on": | |
push: | |
paths: | |
- 'setup.py' | |
pull_request: {} | |
release: {} | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/schwab-api | |
permissions: | |
id-token: write | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # full history for setuptools_scm | |
- name: Build and publish | |
uses: lsst-sqre/build-and-publish-to-pypi@v2 | |
with: | |
python-version: "3.11" |