fix: use math.ceil() instead of int() for n_local_cores to prevent ZeroDivisionError on single-core machines #387
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: package-release | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| name: build and upload release to pypi | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| - uses: casperdcl/deploy-pypi@v2 | |
| with: | |
| password: ${{ secrets.PYPI_TOKEN }} | |
| pip: wheel -w dist/ --no-deps . | |
| upload: ${{ github.event_name == 'release' && github.event.action == 'published' }} |