Skip to content

Commit 6c07116

Browse files
committed
Fix and test undefined exports
1 parent 423a122 commit 6c07116

File tree

12 files changed

+88
-19
lines changed

12 files changed

+88
-19
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
pkg:
24-
- DiffEqProblemLibrary
25-
- DAEProblemLibrary
26-
- DDEProblemLibrary
27-
- JumpProblemLibrary
28-
- ODEProblemLibrary
29-
- SDEProblemLibrary
23+
project:
24+
- '.'
25+
- lib/DAEProblemLibrary
26+
- lib/DDEProblemLibrary
27+
- lib/JumpProblemLibrary
28+
- lib/ODEProblemLibrary
29+
- lib/SDEProblemLibrary
3030
version:
3131
- '1'
3232
- '1.6'
@@ -38,13 +38,13 @@ jobs:
3838
- uses: julia-actions/cache@v1
3939
- uses: julia-actions/julia-buildpkg@v1
4040
with:
41-
project: "${{ matrix.pkg == 'DiffEqProblemLibrary' && '.' || format('lib/{0}', matrix.pkg) }}"
41+
project: ${{ matrix.project }}
4242
- uses: julia-actions/julia-runtest@v1
4343
with:
44-
project: "${{ matrix.pkg == 'DiffEqProblemLibrary' && '.' || format('lib/{0}', matrix.pkg) }}"
44+
project: ${{ matrix.project }}
4545
- uses: julia-actions/julia-processcoverage@v1
4646
with:
47-
directories: "${{ matrix.pkg == 'DiffEqProblemLibrary' && 'src' || format('lib/{0}/src', matrix.pkg) }}"
47+
directories: ${{ matrix.project }}/src
4848
- uses: codecov/codecov-action@v3
4949
with:
5050
files: lcov.info

lib/DAEProblemLibrary/Project.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@ DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
77
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
88

99
[compat]
10+
Aqua = "0.5"
1011
DiffEqBase = "6"
11-
julia = "1.6"
12+
julia = "1.6"
13+
14+
[extras]
15+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
16+
17+
[targets]
18+
test = ["Aqua"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# The test is simply that all of the examples build!
22
using DAEProblemLibrary
3+
4+
# Check that there are no undefined exports, stale dependencies, etc.
5+
# Ambiguity checks are disabled since tests fail due to ambiguities
6+
# in dependencies
7+
using Aqua
8+
Aqua.test_all(DAEProblemLibrary; ambiguities = false)

lib/DDEProblemLibrary/Project.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
name = "DDEProblemLibrary"
22
uuid = "f42792ee-6ffc-4e2a-ae83-8ee2f22de800"
3-
version = "0.1.0"
3+
version = "0.1.1"
44

55
[deps]
66
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
77

88
[compat]
9+
Aqua = "0.5"
910
DiffEqBase = "6"
10-
julia = "1.6"
11+
julia = "1.6"
12+
13+
[extras]
14+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
15+
16+
[targets]
17+
test = ["Aqua"]

lib/DDEProblemLibrary/src/DDEProblemLibrary.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ using DiffEqBase
66
# examples with constant delays
77
export
88
# DDEs with 1 constant delay
9-
prob_dde_1delay_ip, prob_dde_1delay_oop, prob_dde_1delay_scalar,
10-
prob_dde_1delay_long_ip, prob_dde_1delay_long_oop, prob_dde_1delay_long_scalar,
9+
prob_dde_constant_1delay_ip, prob_dde_constant_1delay_oop,
10+
prob_dde_constant_1delay_scalar,
11+
prob_dde_constant_1delay_long_ip, prob_dde_constant_1delay_long_oop,
12+
prob_dde_constant_1delay_long_scalar,
1113
# DDEs with 2 constant delays
12-
prob_dde_2delays_ip, prob_dde_2delays_oop, prob_dde_2delays_scalar,
13-
prob_dde_2delays_long_ip, prob_dde_2delays_long_oop, prob_dde_2delays_long_scalar
14+
prob_dde_constant_2delays_ip, prob_dde_constant_2delays_oop,
15+
prob_dde_constant_2delays_scalar,
16+
prob_dde_constant_2delays_long_ip, prob_dde_constant_2delays_long_oop,
17+
prob_dde_constant_2delays_long_scalar
1418

1519
# DDETST problems
1620
export
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
# The test is simply that all of the examples build!
1+
# The main test is simply that all of the examples build!
22
using DDEProblemLibrary
3+
4+
# Check that there are no undefined exports, stale dependencies, etc.
5+
# Ambiguity checks are disabled since tests fail due to ambiguities
6+
# in dependencies
7+
using Aqua
8+
Aqua.test_all(DDEProblemLibrary; ambiguities = false)

lib/JumpProblemLibrary/Project.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Catalyst = "479239e8-5488-4da2-87a7-35f2df7eef83"
77
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
88

99
[compat]
10+
Aqua = "0.5"
1011
Catalyst = "11, 12"
1112
DiffEqBase = "6"
12-
julia = "1.6"
13+
julia = "1.6"
14+
15+
[extras]
16+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
17+
18+
[targets]
19+
test = ["Aqua"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# The test is simply that all of the examples build!
22
using JumpProblemLibrary
3+
4+
# Check that there are no undefined exports, stale dependencies, etc.
5+
# Ambiguity checks are disabled since tests fail due to ambiguities
6+
# in dependencies
7+
using Aqua
8+
Aqua.test_all(JumpProblemLibrary; ambiguities = false)

lib/ODEProblemLibrary/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,15 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1212
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1313

1414
[compat]
15+
Aqua = "0.5"
1516
DiffEqBase = "6"
1617
DiffEqOperators = "4"
1718
Latexify = "0.15"
1819
ModelingToolkit = "7,8"
1920
julia = "1.6"
21+
22+
[extras]
23+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
24+
25+
[targets]
26+
test = ["Aqua"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# The test is simply that all of the examples build!
22
using ODEProblemLibrary
3+
4+
# Check that there are no undefined exports, stale dependencies, etc.
5+
# Ambiguity checks are disabled since tests fail due to ambiguities
6+
# in dependencies
7+
using Aqua
8+
Aqua.test_all(ODEProblemLibrary; ambiguities = false)

lib/SDEProblemLibrary/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
88
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
99

1010
[compat]
11+
Aqua = "0.5"
1112
Catalyst = "11, 12"
1213
DiffEqBase = "6"
1314
julia = "1.6"
15+
16+
[extras]
17+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
18+
19+
[targets]
20+
test = ["Aqua"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# The test is simply that all of the examples build!
22
using SDEProblemLibrary
3+
4+
# Check that there are no undefined exports, stale dependencies, etc.
5+
# Ambiguity checks are disabled since tests fail due to ambiguities
6+
# in dependencies
7+
using Aqua
8+
Aqua.test_all(SDEProblemLibrary; ambiguities = false)

0 commit comments

Comments
 (0)