Skip to content

Commit

Permalink
Don't test metadata on github.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Jul 18, 2024
1 parent a00d8d4 commit 54cd77d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ using Test
using Phylo
using Pkg

Pkg.develop(url = "https://github.com/richardreeve/ResearchSoftwareMetadata.jl.git")
using ResearchSoftwareMetadata
@error pwd()

# Identify files in test/ that are testing matching files in src/
# - src/Source.jl will be matched by test/test_Source.jl
filebase = String[]
Expand Down
19 changes: 12 additions & 7 deletions test/test_Phylo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using Test
using Phylo
using Git
using Logging
using ResearchSoftwareMetadata
using Pkg

function is_repo_clean(repo_path)
# Get the status of the repository
Expand All @@ -18,12 +18,17 @@ function is_repo_clean(repo_path)
return is_clean
end

@testset "RSMD" begin
git_dir = readchomp(`$(Git.git()) rev-parse --show-toplevel`)
@test isnothing(ResearchSoftwareMetadata.crosswalk())
global_logger(SimpleLogger(stderr, Logging.Warn))
@test_nowarn ResearchSoftwareMetadata.crosswalk()
@test is_repo_clean(git_dir)
if !haskey(ENV, "GITHUB_TOKEN")
Pkg.develop(url = "https://github.com/richardreeve/ResearchSoftwareMetadata.jl.git")
using ResearchSoftwareMetadata

@testset "RSMD" begin
git_dir = readchomp(`$(Git.git()) rev-parse --show-toplevel`)
@test isnothing(ResearchSoftwareMetadata.crosswalk())
global_logger(SimpleLogger(stderr, Logging.Warn))
@test_nowarn ResearchSoftwareMetadata.crosswalk()
@test is_repo_clean(git_dir)
end
end

@testset "Deprecations" begin
Expand Down

0 comments on commit 54cd77d

Please sign in to comment.