diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 850976317..bce5546c8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,6 +8,11 @@ env: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # cancel all except push to main branch to have always full results + cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }} + jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4592194cc..651f48ae7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,4 @@ --- - name: Tests on: [push, pull_request, workflow_dispatch] @@ -7,6 +6,11 @@ on: [push, pull_request, workflow_dispatch] env: FORCE_COLOR: 1 +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + # cancel all except push to main branch to have always full results + cancel-in-progress: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/main') }} + jobs: test: runs-on: ${{ matrix.os }} @@ -34,9 +38,8 @@ jobs: - name: Install dependencies run: | - python -m pip install -U pip - python -m pip install -U wheel - python -m pip install -U tox + pip install -U pip + pip install -U tox - name: Download more tests from friend projects if: matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest'