From ec772d94a25d3d73054422c535fbe08afbc2f8f6 Mon Sep 17 00:00:00 2001 From: ghazi Date: Sat, 6 Dec 2025 10:01:13 +0100 Subject: [PATCH] update github actions versions and avoid duplicate runs --- .github/workflows/github_release.yml | 2 +- .github/workflows/tests.yml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/github_release.yml b/.github/workflows/github_release.yml index 8a669ec..d4e80e7 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/github_release.yml @@ -19,7 +19,7 @@ jobs: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} shell: bash - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v6 - name: Get Changelog Entry id: changelog_reader uses: mindsers/changelog-reader-action@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f89a430..79519cf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,10 @@ name: Tests on: - - push - - pull_request + push: + branches: [main] + pull_request: + types: [opened, synchronize] jobs: test: @@ -13,9 +15,9 @@ jobs: python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies