Skip to content

Commit

Permalink
Cancel in-progress slow tests on push
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 11, 2024
1 parent ebf7895 commit c8d3ef9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
testmodels:
strategy:
matrix:
os: [ubuntu-24.04]
testname:
[
classicmode_1d_3dgrid,
Expand All @@ -37,9 +36,9 @@ jobs:
nebular_1d_3dgrid,
nebular_1d_3dgrid_limitbfest,
]
fail-fast: false
fail-fast: ${{ inputs.testmode == 'ON' }}

runs-on: ${{ matrix.os }}
runs-on: ubuntu-24.04
timeout-minutes: 120
name: ${{ matrix.testname }}

Expand Down Expand Up @@ -138,7 +137,6 @@ jobs:
run: cat job0/output_0-0.txt

- name: Checksum job0 output files
#if: always()
if: always()
working-directory: tests/${{ matrix.testname }}_testrun
run: |
Expand Down Expand Up @@ -192,7 +190,6 @@ jobs:
cat exspec.txt
- name: Checksum job1 output files
#if: always()
if: always()
working-directory: tests/${{ matrix.testname }}_testrun
run: |
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/cislowtestmode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: CI Slow

on:
push:
branches:
- main
- develop
branches-ignore:
- classic*
workflow_dispatch:
pull_request:

concurrency:
# Use github.run_id on main or develop branch (unlimited concurrency)
# Use github.ref otherwise, so that it's unique per branch or PR
group: ${{ github.workflow }}-${{ github.ref_protected && github.run_id || github.ref }}
cancel-in-progress: true

jobs:
citestmode:
Expand Down

0 comments on commit c8d3ef9

Please sign in to comment.