Skip to content

Commit 157294c

Browse files
authored
Merge pull request #1 from JuliaArrays/jc/ci
skip inferred error in old Julia versions
2 parents fe24fc3 + 6b3f1ce commit 157294c

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/UnitTest.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
create:
4+
tags:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
schedule:
10+
- cron: '20 00 1 * *'
11+
512
jobs:
613
test:
714
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,6 +22,8 @@ jobs:
1522
- 'nightly'
1623
os:
1724
- ubuntu-latest
25+
- macos-latest
26+
- windows-latest
1827
arch:
1928
- x64
2029
steps:

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ end
1818
@test size(sv) == (3, 4, 2)
1919
@test collect(sv) == cat(A, B; dims=3)
2020

21-
sv = @inferred StackView((A, B))
21+
sv = if VERSION >= v"1.2.0"
22+
@inferred StackView((A, B))
23+
else
24+
StackView((A, B))
25+
end
2226
@test size(sv) == (3, 4, 2)
2327
@test collect(sv) == cat(A, B; dims=3)
2428

0 commit comments

Comments
 (0)