Skip to content

Commit 7c2755d

Browse files
authored
Version 0.3.0: Use ViennaRNA.jl v0.11.0, ViennaRNA_jll v2.6.2, add Aqua tests (#9)
* Add Aqua.test_all to tests * Do not run some tests from Aqua.test_all that fail on julia-1.6 * Update to ViennaRNA.jl 0.11 * v0.3.0
1 parent 375c1bb commit 7c2755d

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

Project.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlotRNA"
22
uuid = "eab79ae3-43af-4078-b4a3-b180fd2797a7"
33
authors = ["Marco Matthies <[email protected]>"]
4-
version = "0.2.2"
4+
version = "0.3.0"
55

66
[deps]
77
BioStockholm = "eeb925a3-6f9d-43e6-829e-e0ea03b76ecf"
@@ -14,7 +14,16 @@ Scratch = "6c6a2e73-6563-6170-7368-637461726353"
1414
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1515
ViennaRNA = "05a721ad-238d-4945-8c85-8b5c1fff3465"
1616

17+
[weakdeps]
18+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
19+
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
20+
21+
[extensions]
22+
CairoMakieExt = "CairoMakie"
23+
UnicodePlotsExt = "UnicodePlots"
24+
1725
[compat]
26+
Aqua = "0.6"
1827
BioStockholm = "0.1"
1928
CairoMakie = "0.10"
2029
ColorSchemes = "3.18"
@@ -24,23 +33,16 @@ R2R_jll = "=1.0.6"
2433
Requires = "1.3"
2534
Scratch = "1.1"
2635
UnicodePlots = "3"
27-
ViennaRNA = "0.9,0.10"
36+
ViennaRNA = "0.11"
2837
julia = "1.6"
2938

30-
[extensions]
31-
CairoMakieExt = "CairoMakie"
32-
UnicodePlotsExt = "UnicodePlots"
33-
3439
[extras]
40+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3541
BioStockholm = "eeb925a3-6f9d-43e6-829e-e0ea03b76ecf"
3642
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
3743
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3844
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
3945
ViennaRNA = "05a721ad-238d-4945-8c85-8b5c1fff3465"
4046

4147
[targets]
42-
test = ["BioStockholm", "CairoMakie", "Test", "UnicodePlots", "ViennaRNA"]
43-
44-
[weakdeps]
45-
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
46-
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
48+
test = ["Aqua", "BioStockholm", "CairoMakie", "Test", "UnicodePlots", "ViennaRNA"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# PlotRNA.jl
22

33
[![Build Status](https://github.com/marcom/PlotRNA.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/marcom/PlotRNA.jl/actions/workflows/CI.yml?query=branch%3Amain)
4+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
45

56
Plot nucleic acid secondary structures with Julia.
67

test/aqua.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Aqua
2+
using PlotRNA
3+
4+
@testset "Aqua.test_all" begin
5+
showtestset()
6+
if VERSION >= v"1.7"
7+
Aqua.test_all(PlotRNA)
8+
else
9+
# Aqua-0.6.4 on julia-1.6 complains about method ambiguities
10+
# and Project.toml formatting, julia-1.9 does not
11+
# Ref for Project.toml formatting: https://github.com/JuliaTesting/Aqua.jl/issues/105
12+
# Method ambiguities might be due to the compiler in julia-1.6 being a lot older
13+
Aqua.test_all(PlotRNA; ambiguities=false, project_toml_formatting=false)
14+
end
15+
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ showtestset() = println(" "^(2 * Test.get_testset_depth()), "testing ",
66

77
@testset verbose=true "PlotRNA" begin
88
showtestset()
9+
include("aqua.jl")
910
include("plot_structure.jl")
1011
if isnothing(Sys.which("java"))
1112
@warn "Can't find java executable, skipping VARNA tests"

0 commit comments

Comments
 (0)