Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorNetworks"
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7"
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"]
version = "0.15.1"
version = "0.15.2"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
1 change: 0 additions & 1 deletion src/ITensorNetworks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ include("solvers/operator_map.jl")
include("solvers/abstract_problem.jl")
include("solvers/eigsolve.jl")
include("solvers/applyexp.jl")
include("solvers/fitting.jl")

include("apply.jl")
include("inner.jl")
Expand Down
123 changes: 0 additions & 123 deletions src/solvers/fitting.jl

This file was deleted.

27 changes: 15 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,42 @@ const pat = r"(?:--group=)(\w+)"
arg_id = findfirst(contains(pat), ARGS)
const GROUP = uppercase(
if isnothing(arg_id)
get(ENV, "GROUP", "ALL")
arg = get(ENV, "GROUP", "ALL")
# For some reason `ENV["GROUP"]` is set to `""`
# when running via GitHub Actions, so handle that case:
arg == "" ? "ALL" : arg
else
only(match(pat, ARGS[arg_id]).captures)
end,
)

"match files of the form `test_*.jl`, but exclude `*setup*.jl`"
function istestfile(fn)
function istestfile(path)
fn = basename(path)
return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup")
end
"match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`"
function isexamplefile(fn)
function isexamplefile(path)
fn = basename(path)
return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup")
end

@time begin
# tests in groups based on folder structure
for testgroup in filter(f -> isdir(joinpath(@__DIR__, f)), readdir(@__DIR__))
if GROUP == "ALL" || GROUP == uppercase(testgroup)
groupdir = joinpath(@__DIR__, testgroup)
for file in filter(istestfile, readdir(groupdir))
filename = joinpath(groupdir, file)
@eval @safetestset $file begin
for testgroup in filter(isdir, readdir(@__DIR__; join = true))
if GROUP == "ALL" || GROUP == uppercase(basename(testgroup))
for filename in filter(istestfile, readdir(testgroup; join = true))
@eval @safetestset $(basename(filename)) begin
include($filename)
end
end
end
end

# single files in top folder
for file in filter(istestfile, readdir(@__DIR__))
(file == basename(@__FILE__)) && continue # exclude this file to avoid infinite recursion
@eval @safetestset $file begin
for file in filter(istestfile, readdir(@__DIR__; join = true))
(basename(file) == basename(@__FILE__)) && continue # exclude this file to avoid infinite recursion
@eval @safetestset $(basename(file)) begin
include($file)
end
end
Expand Down
47 changes: 0 additions & 47 deletions test/solvers/test_fitting.jl

This file was deleted.

Loading