Skip to content

Commit

Permalink
CI: set concurrency (#112)
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
Borda and hugovk authored Mar 23, 2024
1 parent 7e92006 commit a9559ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
---

name: Tests

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 }}
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit a9559ba

Please sign in to comment.