Skip to content

Commit 2158451

Browse files
authored
Merge pull request #132 from Kolaru/update_CI
Update CI
2 parents 819bbec + 79bab16 commit 2158451

File tree

1 file changed

+48
-18
lines changed

1 file changed

+48
-18
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,61 @@
11
name: CI
2+
23
on:
3-
pull_request:
4+
push:
5+
paths-ignore:
6+
- 'LICENSE.md'
7+
- 'README.md'
48
branches:
59
- master
6-
push:
10+
pull_request:
711
branches:
812
- master
913
tags: '*'
14+
1015
jobs:
16+
pre_job:
17+
runs-on: ubuntu-latest
18+
# Map a step output to a job output
19+
outputs:
20+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
21+
steps:
22+
- id: skip_check
23+
uses: fkirc/skip-duplicate-actions@v5
24+
with:
25+
concurrent_skipping: 'same_content_newer'
1126
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
27+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-threads }} thread(s) - ${{ github.event_name }}
28+
needs: pre_job
29+
if: needs.pre_job.outputs.should_skip != 'true'
1330
runs-on: ${{ matrix.os }}
31+
env:
32+
JULIA_NUM_THREADS: ${{ matrix.julia-threads }}
1433
strategy:
1534
fail-fast: false
1635
matrix:
17-
version:
18-
- '1.7'
19-
- '1.9'
20-
os:
21-
- ubuntu-latest
22-
arch:
23-
- x64
36+
julia-version: ['1.9', '1', 'nightly']
37+
julia-arch: [x64]
38+
os: [ubuntu-latest, macOS-latest, windows-latest]
39+
# # 32-bit Julia binaries are not available on macOS
40+
# exclude:
41+
# - os: macOS-latest
42+
# julia-arch: x86
43+
julia-threads:
44+
- '1'
45+
include:
46+
- os: ubuntu-latest
47+
julia-version: '1'
48+
julia-arch: x64
49+
julia-threads: '2'
50+
2451
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v2
27-
- uses: julia-actions/setup-julia@v1
52+
- uses: actions/checkout@v4
53+
- name: "Set up Julia"
54+
uses: julia-actions/setup-julia@v2
2855
with:
29-
version: ${{ matrix.version }}
30-
arch: ${{ matrix.arch }}
31-
- uses: actions/cache@v1
56+
version: ${{ matrix.julia-version }}
57+
arch: ${{ matrix.julia-arch }}
58+
- uses: actions/cache@v4
3259
env:
3360
cache-name: cache-artifacts
3461
with:
@@ -39,8 +66,11 @@ jobs:
3966
${{ runner.os }}-test-
4067
${{ runner.os }}-
4168
- uses: julia-actions/julia-buildpkg@v1
69+
# continue-on-error: ${{ matrix.julia-version == 'nightly' }}
4270
- uses: julia-actions/julia-runtest@v1
71+
# continue-on-error: ${{ matrix.julia-version == 'nightly' }}
4372
- uses: julia-actions/julia-processcoverage@v1
44-
- uses: codecov/codecov-action@v1
73+
- uses: coverallsapp/github-action@master
4574
with:
46-
file: lcov.info
75+
path-to-lcov: lcov.info
76+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)