Skip to content

Commit

Permalink
Added concurrency groups to workflows (fitbenchmarking#1370)
Browse files Browse the repository at this point in the history
* Added concurrency to workflows

* temp commit for testing

* added unique references

* temp commit for testing

* reverted changes for test

---------

Co-authored-by: Tyrone Rees <[email protected]>
  • Loading branch information
RabiyaF and tyronerees authored Nov 26, 2024
1 parent de9b604 commit b7c7884
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
name: Ruff (linux)
if: github.event.repository.fork == false
runs-on: ubuntu-latest
concurrency:
group: ruff_linux-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
name: Default System Tests (Linux)
if: github.event.repository.fork == false
runs-on: ubuntu-latest
concurrency:
group: default_system_linux-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -46,6 +49,9 @@ jobs:
name: Full System Tests (Linux)
if: github.event.repository.fork == false
runs-on: ubuntu-latest
concurrency:
group: full_system_linux-${{ github.ref }}
cancel-in-progress: true
container:
image: 'ghcr.io/fitbenchmarking/fitbenchmarking-extras:latest'
credentials:
Expand Down Expand Up @@ -75,6 +81,9 @@ jobs:
name: Full Unit Tests (Linux)
if: github.event.repository.fork == false
runs-on: ubuntu-latest
concurrency:
group: full_unit_linux-${{ github.ref }}
cancel-in-progress: true
container:
image: 'ghcr.io/fitbenchmarking/fitbenchmarking-extras:latest'
credentials:
Expand Down Expand Up @@ -118,6 +127,9 @@ jobs:
matrix:
python: ['3.9', '3.13']
runs-on: ubuntu-latest
concurrency:
group: default_unit_tests-${{ matrix.python }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -145,6 +157,9 @@ jobs:
if: github.event.repository.fork == false && always()
needs: [default_system_linux, full_system_linux, default_unit_tests, full_unit_linux]
runs-on: ubuntu-latest
concurrency:
group: publish_test_results-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit b7c7884

Please sign in to comment.