Skip to content

Commit

Permalink
chore: serialise test runs (#344)
Browse files Browse the repository at this point in the history
- **Only run one test instance per branch**
- **Remove old release ci action**
  • Loading branch information
simonrw authored Jul 26, 2024
1 parent cb87850 commit b467e4f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 47 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- main
pull_request:

# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
# completely stolen from https://github.com/jonhoo/inferno/blob/8c0a28cab440fd00cd42cfbca403dde895cc67e3/.github/workflows/check.yml#L86-L107
msrv:
Expand Down Expand Up @@ -34,7 +40,7 @@ jobs:
with:
profile: minimal
toolchain: ${{matrix.msrv}}
defualt: true
default: true
components: rustfmt, clippy

- name: cargo +${{ matrix.msrv }} check
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
pull_request:
workflow_dispatch:

# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
coverage:
runs-on: ubuntu-latest
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/release.yml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
schedule:
- cron: "7 7 * * *"

# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
nightly:
runs-on: ubuntu-latest
Expand All @@ -33,4 +39,4 @@ jobs:
components: rustfmt, clippy

- name: Test the code
run: python3 ./bin/test --rust-version nightly --test all --extra-clippy-flags "-A clippy::arc_with_non_send_sync" # extra clippy args since lint is nightly only for now
run: python3 ./bin/test --rust-version nightly --test all --extra-clippy-flags "-A clippy::arc_with_non_send_sync" # extra clippy args since lint is nightly only for now
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- main
pull_request:

# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
ci-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b467e4f

Please sign in to comment.