Skip to content

Commit

Permalink
add Core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 27, 2021
1 parent 7151bbe commit 19cbf53
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 98 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
group:
- Core
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: 1
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
7 changes: 5 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name = "SciMLBase"
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
authors = ["Chris Rackauckas <[email protected]> and contributors"]
version = "0.1.0"
version = "1.0.0"

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

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

[targets]
test = ["SafeTestsets", "Test"]
test = ["Pkg", "SafeTestsets", "Test"]
3 changes: 2 additions & 1 deletion src/SciMLBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ module SciMLBase

using RecipesBase, RecursiveArrayTools, Tables, TreeViews
using DocStringExtensions
import Logging, ArrayInterface
using LinearAlgebra
using Statistics

import Logging, ArrayInterface
import IteratorInterfaceExtensions
import CommonSolve: solve, init, solve!

function __solve end
Expand Down
5 changes: 5 additions & 0 deletions src/tabletraits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ end
Tables.columnnames(x::DESolutionRow) = getfield(x, :names)
Tables.getcolumn(x::DESolutionRow, i::Int) = i == 1 ? getfield(x, :t) : getfield(x, :u)[i - 1]
Tables.getcolumn(x::DESolutionRow, nm::Symbol) = nm === :timestamp ? getfield(x, :t) : getfield(x, :u)[getfield(x, :lookup)[nm] - 1]

IteratorInterfaceExtensions.isiterable(sol::DESolution) = true
IteratorInterfaceExtensions.getiterator(sol::DESolution) =
Tables.datavaluerows(Tables.rows(sol))
#TableTraits.isiterabletable(sol::DESolution) = true
94 changes: 0 additions & 94 deletions test/remake_tests.jl

This file was deleted.

1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ const is_APPVEYOR = ( Sys.iswindows() && haskey(ENV,"APPVEYOR") )
@time begin
@time @safetestset "Existence functions" begin include("existence_functions.jl") end
@time @safetestset "Integrator interface" begin include("integrator_tests.jl") end
@time @safetestset "Remake tests" begin include("remake_tests.jl") end
end

0 comments on commit 19cbf53

Please sign in to comment.