Skip to content

Commit

Permalink
setup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Jun 10, 2024
1 parent ee6e31e commit dfd320c
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 15 deletions.
1 change: 1 addition & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# See https://domluna.github.io/JuliaFormatter.jl/stable/ for a list of options
style = "blue"
17 changes: 14 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name = "ExponentialFamilyManifolds"
uuid = "5c9727c4-3b82-4ab3-b165-76e2eb971b08"
authors = ["Bagaev Dmitry <bvdmitri@gmail.com> and contributors"]
version = "1.0.0-DEV"
authors = ["Mykola Lukashchuk <m.lukashchuk@tue.nl>, Dmitry Bagaev <bvdmitri@gmail.com> and contributors"]
version = "1.0.0"

[deps]
BayesBase = "b4ee3484-f114-42fe-b91c-797d54a0c67e"
ExponentialFamily = "62312e5e-252a-4322-ace9-a5f4bf9b357b"
Manifolds = "1cead3c2-87b3-11e9-0ccd-23c62b72b94e"
ManifoldsBase = "3362f125-f0bb-47a3-aa74-596ffd7ef2fb"

[compat]
BayesBase = "1.3"
ExponentialFamily = "1.4"
Manifolds = "0.9"
ManifoldsBase = "0.15"
julia = "1.6.7"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"

[targets]
test = ["Aqua", "Test"]
test = ["Aqua", "Test", "ReTestItems"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
[![Coverage](https://codecov.io/gh/ReactiveBayes/ExponentialFamilyManifolds.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/ReactiveBayes/ExponentialFamilyManifolds.jl)
[![PkgEval](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/E/ExponentialFamilyManifolds.svg)](https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/E/ExponentialFamilyManifolds.html)
[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)

`ExponentialFamilyManifolds.jl` provides implementations of manifolds for the natural parameters of exponential family distributions, using `Manifolds.jl`. These manifolds are compatible with `ManifoldsBase.jl`, enabling optimization of the natural parameters of exponential family distributions using `Manopt.jl`.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DocMeta.setdocmeta!(ExponentialFamilyManifolds, :DocTestSetup, :(using Exponenti

makedocs(;
modules=[ExponentialFamilyManifolds],
authors="Bagaev Dmitry <bvdmitri@gmail.com> and contributors",
authors="Mykola Lukashchuk <m.lukashchuk@tue.nl>, Dmitry Bagaev <bvdmitri@gmail.com> and contributors",
sitename="ExponentialFamilyManifolds.jl",
format=Documenter.HTML(;
canonical="https://ReactiveBayes.github.io/ExponentialFamilyManifolds.jl",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CurrentModule = ExponentialFamilyManifolds

# ExponentialFamilyManifolds

Documentation for [ExponentialFamilyManifolds](https://github.com/ReactiveBayes/ExponentialFamilyManifolds.jl).
`ExponentialFamilyManifolds.jl` provides implementations of manifolds for the natural parameters of exponential family distributions, using `Manifolds.jl`. These manifolds are compatible with `ManifoldsBase.jl`, enabling optimization of the natural parameters of exponential family distributions using `Manopt.jl`.

```@index
```
Expand Down
2 changes: 1 addition & 1 deletion src/ExponentialFamilyManifolds.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ExponentialFamilyManifolds

# Write your package code here.
using BayesBase, ExponentialFamily, ManifoldsBase, Manifolds

end
9 changes: 9 additions & 0 deletions test/aqua_tests.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@testitem "Aqua: Auto QUality Assurance" begin
using Aqua, ExponentialFamilyManifolds

Aqua.test_all(
ExponentialFamilyManifolds;
ambiguities=false,
deps_compat=(; check_extras=false, check_weakdeps=true),
)
end
11 changes: 2 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
using ExponentialFamilyManifolds
using Test
using Aqua
using ExponentialFamilyManifolds, Test, ReTestItems

@testset "ExponentialFamilyManifolds.jl" begin
@testset "Code quality (Aqua.jl)" begin
Aqua.test_all(ExponentialFamilyManifolds)
end
# Write your tests here.
end
runtests(ExponentialFamilyManifolds; memory_threshold=1.0)

0 comments on commit dfd320c

Please sign in to comment.