update callback to use new scheduler methods #422
Workflow file for this run
This file contains hidden or 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 distribution | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v2 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.12 | |
| - name: Install build dependencies | |
| run: python -m pip install setuptools build wheel | |
| - name: Build distributions | |
| shell: bash -l {0} | |
| run: python setup.py sdist bdist_wheel | |
| - name: Publish distribution 📦 to Test PyPI | |
| if: github.repository == 'Chris-hughes10/pytorch-accelerated' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@master | |
| with: | |
| password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
| repository_url: https://test.pypi.org/legacy/ | |
| - name: Publish package to PyPI | |
| if: github.repository == 'Chris-hughes10/pytorch-accelerated' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@master | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} |