chore: update version to 2.0.4 and change shared_id type to UUID in d… #1221
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: Python package | |
| on: [ push ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 5 | |
| matrix: | |
| python-version: | |
| - "3.13" | |
| - "3.12" | |
| - "3.11" | |
| - "3.10" | |
| - "3.9" | |
| changed-dir: | |
| - "qase-api-client" | |
| - "qase-api-v2-client" | |
| - "qase-pytest" | |
| - "qase-robotframework" | |
| - "qase-python-commons" | |
| - "qase-behave" | |
| - "qase-tavern" | |
| name: Project ${{ matrix.changed-dir }} - Python ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| list-files: "shell" | |
| filters: | | |
| changes: | |
| - '${{ matrix.changed-dir }}/**' | |
| - name: Set up Python ${{ matrix.python-version }} | |
| if: steps.filter.outputs.changes == 'true' | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| if: steps.filter.outputs.changes == 'true' | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox tox-gh-actions | |
| - name: Run tox | |
| if: steps.filter.outputs.changes == 'true' | |
| working-directory: ./${{ matrix.changed-dir }} | |
| run: | | |
| tox | |
| build-n-publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| needs: test | |
| strategy: | |
| max-parallel: 1 | |
| matrix: | |
| prefix: | |
| [ | |
| "qase-api-client", | |
| "qase-api-v2-client", | |
| "qase-pytest", | |
| "qase-robotframework", | |
| "qase-python-commons", | |
| "qase-behave", | |
| "qase-tavern" | |
| ] | |
| if: startsWith(github.event.ref, 'refs/tags') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.9 | |
| if: contains(github.event.ref, matrix.prefix) | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - name: Install build dependencies | |
| if: contains(github.event.ref, matrix.prefix) | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel build | |
| - name: Build the package | |
| if: contains(github.event.ref, matrix.prefix) | |
| working-directory: ./${{ matrix.prefix }} | |
| run: | | |
| python -m build | |
| - name: Publish distribution to PyPI | |
| if: contains(github.event.ref, matrix.prefix) | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_PASSWORD }} | |
| packages-dir: ./${{ matrix.prefix }}/dist | |
| - name: Extract tag name | |
| if: contains(github.event.ref, matrix.prefix) | |
| id: tag | |
| run: | | |
| TAG_NAME=${GITHUB_REF#refs/tags/} | |
| echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| if: contains(github.event.ref, matrix.prefix) | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.tag.outputs.tag }} | |
| name: Release ${{ steps.tag.outputs.tag }} | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |