diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dae96e3d5..f0a5e52a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,7 @@ jobs: path: dist/ - name: Sign the dists with Sigstore - uses: sigstore/gh-action-sigstore-python@v2.1.1 + uses: sigstore/gh-action-sigstore-python@v3 with: inputs: >- ./dist/*.tar.gz diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2acfb8d6a..40085b580 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,10 @@ name: Tests on: + pull_request: + types: + - ready_for_review + - review_requested push: branches-ignore: - main @@ -9,8 +13,17 @@ on: - generatereadme-* - generatedocstring-* - generateunittests-* + - resolveissue-* - demo* +# Credits to https://blog.maximeheckel.com/posts/building-perfect-github-action-frontend-teams/ +concurrency: + # Here the group is defined by the head_ref of the PR + group: ${{ github.head_ref }} + # Here we specify that we'll cancel any "in progress" workflow of the same group. Thus if we push, ammend a commit and push + # again the previous workflow will be cancelled, thus saving us github action build minutes and avoid any conflicts + cancel-in-progress: true + jobs: all-test: runs-on: ubuntu-latest