Skip to content

Commit ae57a17

Browse files
devmotionoschulz
authored andcommitted
Improve CI config
1 parent 986eea0 commit ae57a17

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ on:
44
push:
55
branches:
66
- master
7-
- dev
8-
- 'releases/**'
97
tags: '*'
108
pull_request:
11-
release:
9+
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/') }}
1215

1316
jobs:
1417
test:
@@ -24,19 +27,18 @@ jobs:
2427
- 'nightly'
2528
os:
2629
- ubuntu-latest
27-
- macOS-latest
28-
- windows-latest
2930
arch:
3031
- x64
31-
- x86
32-
exclude:
33-
# 32-bit Julia binaries are not available on macOS
34-
- os: macOS-latest
35-
arch: x86
36-
- os: windows-latest
37-
arch: x86
38-
- version: nightly
32+
include:
33+
- version: 1
34+
os: ubuntu-latest
3935
arch: x86
36+
- version: 1
37+
os: macOS-latest
38+
arch: x64
39+
- version: 1
40+
os: windows-latest
41+
arch: x64
4042
steps:
4143
- uses: actions/checkout@v2
4244
- uses: julia-actions/setup-julia@latest
@@ -55,11 +57,13 @@ jobs:
5557
${{ runner.os }}-test-
5658
${{ runner.os }}-
5759
- uses: julia-actions/julia-buildpkg@latest
58-
env:
59-
PYTHON: 'Conda'
6060
- uses: julia-actions/julia-runtest@latest
61+
with:
62+
coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' }}
6163
- uses: julia-actions/julia-processcoverage@v1
64+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
6265
- uses: codecov/codecov-action@v1
66+
if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
6367
with:
6468
file: lcov.info
6569
docs:
@@ -82,8 +86,6 @@ jobs:
8286
${{ runner.os }}-test-
8387
${{ runner.os }}-
8488
- uses: julia-actions/julia-buildpkg@latest
85-
env:
86-
PYTHON: 'Conda'
8789
- uses: julia-actions/julia-docdeploy@latest
8890
env:
8991
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)