[chron] change pipeline state to atomic #160
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: Pip4Linux | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install build tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install cibuildwheel twine | |
| - name: Build linux wheels | |
| env: | |
| CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*" | |
| CIBW_SKIP: "*-musllinux_*" | |
| CIBW_ARCHS_LINUX: "x86_64" | |
| run: | | |
| python -m cibuildwheel --output-dir wheelhouse python | |
| - name: Check wheels | |
| run: | | |
| twine check wheelhouse/* | |
| - name: Upload to pypi when release | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| env: | |
| TWINE_USERNAME: __token__ | |
| TWINE_PASSWORD: ${{ secrets.PYPI_PYCGRAPH_TOKEN }} | |
| run: | | |
| twine upload --verbose --skip-existing wheelhouse/* |