#617: tmp fix: add timer to all methods and use comm param #1995
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: Publish Python package to PyPi | |
| on: push | |
| jobs: | |
| build-n-publish: | |
| name: Build and publish Python Package to PyPi | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.8 | |
| - name: Install build | |
| run: | | |
| python -m pip install build --user | |
| - name: Build a binary wheel and a source tarball | |
| run: | | |
| python -m build --sdist --wheel --outdir dist/ . | |
| - name: Publish package | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| verbose: true | |
| print-hash: true |