File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed
Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches : [main]
5+ tags : ["*"]
6+ pull_request :
7+ jobs :
8+ test :
9+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+ runs-on : ${{ matrix.os }}
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ version :
15+ - ' 1' # automatically expands to the latest stable 1.x release of Julia
16+ os :
17+ - ubuntu-latest
18+ - macOS-latest
19+ - windows-latest
20+ arch :
21+ - x64
22+ - x86
23+ exclude :
24+ - os : macOS-latest
25+ arch : x86
26+ steps :
27+ - uses : actions/checkout@v2
28+ - uses : julia-actions/setup-julia@v1
29+ with :
30+ version : ${{ matrix.version }}
31+ arch : ${{ matrix.arch }}
32+ - uses : actions/cache@v1
33+ env :
34+ cache-name : cache-artifacts
35+ with :
36+ path : ~/.julia/artifacts
37+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-test-${{ env.cache-name }}-
40+ ${{ runner.os }}-test-
41+ ${{ runner.os }}-
42+ - uses : julia-actions/julia-buildpkg@v1
43+ - uses : julia-actions/julia-runtest@v1
44+ - uses : julia-actions/julia-processcoverage@v1
45+ - uses : codecov/codecov-action@v1
46+ with :
47+ file : lcov.info
Original file line number Diff line number Diff line change @@ -2,5 +2,11 @@ using SQLiteGraph
22using Test
33
44@testset " SQLiteGraph.jl" begin
5- # Write your tests here.
5+ @testset " empty DB" begin
6+ db = DB ()
7+ @test length (db) == 0
8+ @test size (db) == (nodes= 0 , edges= 0 )
9+ @test_throws BoundsError db[5 ]
10+ @test isnothing (db[1 ,2 ])
11+ end
612end
You can’t perform that action at this time.
0 commit comments