diff --git a/.github/workflows/header_checks.yml b/.github/workflows/header_checks.yml index 7a5f256b600..321cc3b93d1 100644 --- a/.github/workflows/header_checks.yml +++ b/.github/workflows/header_checks.yml @@ -16,21 +16,16 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: windows: - permissions: - actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs - contents: read # for actions/checkout to fetch code name: Windows runs-on: windows-latest steps: - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: c-cpp.yml - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'" - - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: @@ -53,19 +48,10 @@ jobs: run: make -j2 test-headers opencl: - permissions: - actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs - contents: read # for actions/checkout to fetch code name: OpenCL runs-on: ubuntu-latest steps: - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: c-cpp.yml - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'" - - uses: actions/checkout@v3 - name: Run header tests @@ -73,19 +59,10 @@ jobs: echo "STAN_OPENCL=true" > make/local make -j2 test-headers no_range_checks: - permissions: - actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs - contents: read # for actions/checkout to fetch code name: NoRange runs-on: ubuntu-latest steps: - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - workflow: c-cpp.yml - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'" - - uses: actions/checkout@v3 - name: Run header tests diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dce2a1b5dd9..8e18cfa2bb0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,21 +14,16 @@ on: - 'RELEASE-NOTES.txt' permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: prim-rev: - permissions: - actions: write # for n1hility/cancel-previous-runs to create & stop workflow runs - contents: read # for actions/checkout to fetch code name: prim and rev tests runs-on: windows-latest steps: - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'" - - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: @@ -73,6 +68,7 @@ jobs: with: name: gtest_outputs_xml path: '**/*_test.xml' + fwd-non-fun-mix: name: fwd tests and non-fun mix tests runs-on: windows-latest @@ -126,6 +122,7 @@ jobs: with: name: gtest_outputs_xml path: '**/*_test.xml' + mix-fun-1: name: mix/fun tests 1 runs-on: windows-latest @@ -174,6 +171,7 @@ jobs: with: name: gtest_outputs_xml path: '**/*_test.xml' + mix-fun-2: name: mix/fun tests 2 runs-on: windows-latest