diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index fb5850c0..bcdf4a12 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -25,8 +25,8 @@ jobs: - "qase-tavern" name: Project ${{ matrix.changed-dir }} - Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: list-files: "shell" @@ -35,7 +35,7 @@ jobs: - '${{ matrix.changed-dir }}/**' - name: Set up Python ${{ matrix.python-version }} if: steps.filter.outputs.changes == 'true' - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -66,10 +66,10 @@ jobs: ] if: startsWith(github.event.ref, 'refs/tags') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 if: contains(github.event.ref, matrix.prefix) - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install build dependencies @@ -83,8 +83,23 @@ jobs: python -m build - name: Publish distribution to PyPI if: contains(github.event.ref, matrix.prefix) - uses: pypa/gh-action-pypi-publish@v1.13.0 + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_PASSWORD }} - packages_dir: ./${{ matrix.prefix }}/dist + 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 }} diff --git a/qase-pytest/requirements.txt b/qase-pytest/requirements.txt index 81c9f33d..70122707 100644 --- a/qase-pytest/requirements.txt +++ b/qase-pytest/requirements.txt @@ -1,4 +1,4 @@ attrs==23.2.0 pytest>=8.0.0 -filelock~=3.13.1 +filelock>=3.12.2 qase-python-commons~=4.1.10 diff --git a/qase-robotframework/requirements.txt b/qase-robotframework/requirements.txt index 87766068..d5e4c79f 100644 --- a/qase-robotframework/requirements.txt +++ b/qase-robotframework/requirements.txt @@ -1,2 +1,3 @@ qase-python-commons~=4.1.10 robotframework~=7.1 +filelock>=3.12.2