Specify user agent when using the Cirro CLI & controller cleanup (#175) #750
  
    
      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 Python package | |
| on: | |
| release: | |
| types: | |
| - published | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push-image: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.12" | |
| - name: Install deps | |
| run: | | |
| python -m pip install --upgrade pip setuptools | |
| pip install poetry | |
| - name: Test install | |
| run: | | |
| poetry install --all-extras | |
| poetry run cirro --help | |
| - name: Build python package | |
| run: | | |
| poetry build | |
| - name: Publish python package | |
| if: github.event_name == 'release' | |
| run: | | |
| poetry publish | |
| env: | |
| POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} |