Skip to content

Commit f8e9158

Browse files
committed
Setup tests
1 parent f6bdfd4 commit f8e9158

File tree

5 files changed

+39
-14
lines changed

5 files changed

+39
-14
lines changed

.JuliaFormatter.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style = "blue"

Project.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name = "GraphsBase"
22
uuid = "ad2ac648-372e-45be-9d57-a550431b71c3"
33
authors = ["JuliaGraphs contributors"]
4-
version = "1.0.0-DEV"
4+
version = "0.1.0-DEV"
55

66
[compat]
77
julia = "1.6"
88

99
[extras]
10+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
11+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
12+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
13+
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
1014
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1115

1216
[targets]
13-
test = ["Test"]
17+
test = ["Aqua", "Documenter", "JET", "JuliaFormatter", "Test"]

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# GraphsBase
22

3-
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaGraphs.github.io/GraphsBase.jl/stable/)
3+
<!-- [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaGraphs.github.io/GraphsBase.jl/stable/) -->
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaGraphs.github.io/GraphsBase.jl/dev/)
55
[![Build Status](https://github.com/JuliaGraphs/GraphsBase.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/JuliaGraphs/GraphsBase.jl/actions/workflows/CI.yml?query=branch%3Amain)
66
[![Coverage](https://codecov.io/gh/JuliaGraphs/GraphsBase.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaGraphs/GraphsBase.jl)
77
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
8-
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
9-
[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/G/GraphsBase.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/report.html)
8+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
9+
<!-- [![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
10+
[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/G/GraphsBase.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/report.html) -->
11+
12+
Basic interface and structures for the JuliaGraphs ecosystem
13+
14+
> This is an experimental package, any feedback is welcome!

docs/make.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ makedocs(;
1414
edit_link="main",
1515
assets=String[],
1616
),
17-
pages=[
18-
"Home" => "index.md",
19-
],
17+
pages=["Home" => "index.md"],
2018
)
2119

22-
deploydocs(;
23-
repo="github.com/JuliaGraphs/GraphsBase.jl",
24-
devbranch="main",
25-
)
20+
deploydocs(; repo="github.com/JuliaGraphs/GraphsBase.jl", devbranch="main")

test/runtests.jl

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1+
using Aqua
2+
using Documenter
13
using GraphsBase
4+
using JET
5+
using JuliaFormatter
26
using Test
37

4-
@testset "GraphsBase.jl" begin
5-
# Write your tests here.
8+
DocMeta.setdocmeta!(GraphsBase, :DocTestSetup, :(using GraphsBase); recursive=true)
9+
10+
@testset verbose = true "GraphsBase.jl" begin
11+
@testset "Code quality (Aqua.jl)" begin
12+
Aqua.test_all(GraphsBase)
13+
end
14+
@testset "Formatting (JuliaFormatter.jl)" begin
15+
@test format(GraphsBase; verbose=false, overwrite=false)
16+
end
17+
@testset "Doctests (Documenter.jl)" begin
18+
doctest(GraphsBase)
19+
end
20+
@testset "Static checking (JET.jl)" begin
21+
if VERSION >= v"1.9"
22+
JET.test_package(GraphsBase; target_modules=(GraphsBase,))
23+
end
24+
end
25+
# Put the actual tests here
626
end

0 commit comments

Comments
 (0)