Skip to content

Commit

Permalink
added Tests for ExplicitImports, use latest julia version in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chmerdon committed Nov 6, 2024
1 parent 5eb1c17 commit 98da06d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.9' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- 'lts' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
# - 'nightly'
os:
Expand Down
8 changes: 4 additions & 4 deletions ext/ExtendableFEMBaseUnicodePlotsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module ExtendableFEMBaseUnicodePlotsExt
using ExtendableGrids: ExtendableGrid, simplexgrid, ON_CELLS, ON_FACES, ON_EDGES, CellNodes, CellGeometries, BFaceNodes, BFaceRegions, Coordinates
using ExtendableFEMBase: FEVector, FEVectorBlock, FESpace, lazy_interpolate!, num_cells, local_celledgenodes, get_ncomponents, H1P1, IdentityComponent, standard_kernel
using UnicodePlots: UnicodePlots, BrailleCanvas, Plot, heatmap, lineplot,
lineplot!, lines!
lineplot!, lines!

import ExtendableFEMBase: unicode_gridplot, unicode_scalarplot

Expand Down Expand Up @@ -140,9 +140,9 @@ function unicode_scalarplot(
title = title * (length(components) == 1 ? "" : "[$(components[c])]"),
colormap = colormap,
) for c 1:length(components)
]
return length(plts) == 1 ? plts[1] : plts
## the following command looks nicer, but requires the Term-based extension of UnicodePlots
]
return length(plts) == 1 ? plts[1] : plts
## the following command looks nicer, but requires the Term-based extension of UnicodePlots
## return UnicodePlots.gridplot(map(i -> plts[i], 1:length(components)); layout = (nrows, nothing))
end
end
Expand Down
6 changes: 3 additions & 3 deletions src/ExtendableFEMBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using ExtendableGrids: ExtendableGrids, AT_NODES, AbstractElementGeometry,
AbstractGridFloatArray2D, AbstractGridIntegerArray2D,
Adjacency, AssemblyType, BEdgeEdges, BEdgeGeometries,
BEdgeRegions, BEdgeVolumes, BFaceEdges, BFaceFaces,
BFaceGeometries, BFaceNodes, BFaceParents, BFaceRegions,
BFaceGeometries, BFaceParents, BFaceRegions,
BFaceVolumes, CellEdgeSigns, CellEdges,
CellFaceOrientations, CellFaceSigns, CellFaces,
CellFinder, CellGeometries, CellNodes, CellParents,
Expand All @@ -40,7 +40,7 @@ using ExtendableGrids: ExtendableGrids, AT_NODES, AbstractElementGeometry,
local_celledgenodes, local_cellfacenodes, mapderiv!,
max_num_targets_per_source, num_cells, num_edges,
num_faces, num_nodes, num_sources, num_targets,
reference_domain, simplexgrid, subgrid, unique,
reference_domain, subgrid, unique,
update_trafo!
using ExtendableSparse: ExtendableSparse, ExtendableSparseMatrix, flush!,
AbstractExtendableSparseMatrixCSC, ExtendableSparseMatrixCSC, MTExtendableSparseMatrixCSC,
Expand All @@ -51,7 +51,7 @@ using LinearAlgebra: LinearAlgebra, convert, det, diagm, dot, eigen, ldiv!, lu,
using Polynomials: Polynomials, Polynomial, coeffs
using Printf: Printf, @printf
using SparseArrays: SparseArrays, AbstractSparseArray, AbstractSparseMatrix,
SparseMatrixCSC, nzrange, rowvals, sparse
SparseMatrixCSC, nzrange, rowvals
using SpecialPolynomials: SpecialPolynomials, ShiftedLegendre, basis

include("functionoperators.jl")
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ExtendableFEMBase = "12fb9182-3d4c-4424-8fd1-727a0899810c"
ExtendableSparse = "95c220a8-a1cf-11e9-0c77-dbfce5f500b3"
ExtendableGrids = "cfc395e8-590f-11e8-1f13-43a2532b2fa8"
ExampleJuggler = "3bbe58f8-ed81-4c4e-a134-03e85fcf4a1a"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
GridVisualize = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Test
using ExtendableGrids
using ExtendableFEMBase
using ExplicitImports
using ExampleJuggler
using SparseArrays
using Aqua
Expand All @@ -14,12 +15,18 @@ using Aqua
Aqua.test_ambiguities(ExtendableFEMBase)
end

@testset "ExplicitImports" begin
@test ExplicitImports.check_no_implicit_imports(ExtendableFEMBase) === nothing
@test ExplicitImports.check_no_stale_explicit_imports(ExtendableFEMBase) === nothing
end

if isdefined(Docs, :undocumented_names) # >=1.11
@testset "UndocumentedNames" begin
@test isempty(Docs.undocumented_names(ExtendableFEMBase))
end
end


include("test_quadrature.jl")
include("test_interpolators.jl")
include("test_operators.jl")
Expand Down

0 comments on commit 98da06d

Please sign in to comment.