Skip to content

Commit 19cbf53

Browse files
add Core tests
1 parent 7151bbe commit 19cbf53

File tree

6 files changed

+50
-98
lines changed

6 files changed

+50
-98
lines changed

.github/workflows/CI.yml

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

Project.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name = "SciMLBase"
22
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
33
authors = ["Chris Rackauckas <[email protected]> and contributors"]
4-
version = "0.1.0"
4+
version = "1.0.0"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"
99
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
10+
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
1011
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1112
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1213
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
@@ -19,6 +20,7 @@ TreeViews = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"
1920
[compat]
2021
ArrayInterface = "2.6"
2122
DocStringExtensions = "0.8"
23+
IteratorInterfaceExtensions = "^0.1, ^1"
2224
RecipesBase = "0.7.0, 0.8, 1.0"
2325
RecursiveArrayTools = "2"
2426
StaticArrays = "0.11, 0.12, 1.0"
@@ -27,8 +29,9 @@ TreeViews = "0.3"
2729
julia = "1"
2830

2931
[extras]
32+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
3033
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
3134
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3235

3336
[targets]
34-
test = ["SafeTestsets", "Test"]
37+
test = ["Pkg", "SafeTestsets", "Test"]

src/SciMLBase.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ module SciMLBase
22

33
using RecipesBase, RecursiveArrayTools, Tables, TreeViews
44
using DocStringExtensions
5-
import Logging, ArrayInterface
65
using LinearAlgebra
76
using Statistics
87

8+
import Logging, ArrayInterface
9+
import IteratorInterfaceExtensions
910
import CommonSolve: solve, init, solve!
1011

1112
function __solve end

src/tabletraits.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ end
4040
Tables.columnnames(x::DESolutionRow) = getfield(x, :names)
4141
Tables.getcolumn(x::DESolutionRow, i::Int) = i == 1 ? getfield(x, :t) : getfield(x, :u)[i - 1]
4242
Tables.getcolumn(x::DESolutionRow, nm::Symbol) = nm === :timestamp ? getfield(x, :t) : getfield(x, :u)[getfield(x, :lookup)[nm] - 1]
43+
44+
IteratorInterfaceExtensions.isiterable(sol::DESolution) = true
45+
IteratorInterfaceExtensions.getiterator(sol::DESolution) =
46+
Tables.datavaluerows(Tables.rows(sol))
47+
#TableTraits.isiterabletable(sol::DESolution) = true

test/remake_tests.jl

Lines changed: 0 additions & 94 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ const is_APPVEYOR = ( Sys.iswindows() && haskey(ENV,"APPVEYOR") )
88
@time begin
99
@time @safetestset "Existence functions" begin include("existence_functions.jl") end
1010
@time @safetestset "Integrator interface" begin include("integrator_tests.jl") end
11-
@time @safetestset "Remake tests" begin include("remake_tests.jl") end
1211
end

0 commit comments

Comments
 (0)