Skip to content

Commit 82f28a1

Browse files
authored
split ci along nightly (#299)
1 parent 99b3da1 commit 82f28a1

File tree

3 files changed

+47
-8
lines changed

3 files changed

+47
-8
lines changed

.github/workflows/ci-nightly.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI-nightly
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
tags: '*'
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- 'nightly'
19+
os:
20+
- ubuntu-latest
21+
- macos-latest
22+
- windows-latest
23+
arch:
24+
- x64
25+
steps:
26+
- uses: actions/checkout@v2
27+
- uses: julia-actions/setup-julia@v1
28+
with:
29+
version: ${{ matrix.version }}
30+
arch: ${{ matrix.arch }}
31+
- uses: actions/cache@v1
32+
env:
33+
cache-name: cache-artifacts
34+
with:
35+
path: ~/.julia/artifacts
36+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
37+
restore-keys: |
38+
${{ runner.os }}-test-${{ env.cache-name }}-
39+
${{ runner.os }}-test-
40+
${{ runner.os }}-
41+
- uses: julia-actions/julia-buildpkg@v1
42+
- uses: julia-actions/julia-runtest@v1

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20-
- 'nightly'
18+
- '1.0' # lowest supported version
19+
- '1' # last released version
2120
os:
2221
- ubuntu-latest
22+
- macos-latest
23+
- windows-latest
2324
arch:
2425
- x64
2526
steps:

src/polynomials/standard-basis.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ function roots(p::P; kwargs...) where {T, P <: StandardBasisPolynomial{T}}
291291
L
292292
end
293293

294-
295294
function vander(P::Type{<:StandardBasisPolynomial}, x::AbstractVector{T}, n::Integer) where {T <: Number}
296295
A = Matrix{T}(undef, length(x), n + 1)
297296
A[:, 1] .= one(T)
@@ -373,7 +372,7 @@ end
373372
# rexpressed from paper to compute horner_sum in same pass
374373
# sᵢ -- horner sum
375374
# c -- compensating term
376-
@inline function compensated_horner(ps, x)
375+
@inline function compensated_horner(ps, x)
377376
n, T = length(ps), eltype(ps)
378377
aᵢ = ps[end]
379378
sᵢ = aᵢ * _one(x)
@@ -430,6 +429,3 @@ function LinearAlgebra.cond(p::P, x) where {P <: Polynomials.StandardBasisPolyno
430429
= map(abs, p)
431430
(abs(x))/ abs(p(x))
432431
end
433-
434-
435-

0 commit comments

Comments
 (0)