Skip to content

Commit 9e7edaa

Browse files
authored
[CI] Add concurrency groups and timeout settings (#78)
1 parent 1540356 commit 9e7edaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@ on:
77
pull_request:
88
release:
99

10+
concurrency:
11+
# Skip intermediate builds: always.
12+
# Cancel intermediate builds: only if it is a pull request build.
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
1016
# Note: ideally we'd have one job for running the tests and another for building
1117
# documentation, but running CI of this package is a bit expensive, the easiest
1218
# thing to do is to run everything together in a single job.
1319
jobs:
1420
CI:
1521
runs-on: ubuntu-latest
1622
container: ${{ matrix.docker_image }}
23+
timeout-minutes: 60
1724
strategy:
1825
fail-fast: false
1926
matrix:
@@ -55,6 +62,7 @@ jobs:
5562
cache-packages: "true"
5663
cache-compiled: "true"
5764
- uses: julia-actions/julia-buildpkg@v1
65+
timeout-minutes: 30
5866
env:
5967
CXX: g++
6068
- uses: julia-actions/julia-docdeploy@v1

0 commit comments

Comments
 (0)