Skip to content

Commit

Permalink
Ensure full version numbers of julia channel are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHatherly committed Jun 20, 2024
1 parent a2be25f commit 66e8bbf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ end
"JULIA_DEPOT_PATH" => DEPOT_PATH[1],
),
)

# The `each_version` might not be the `julia_version`.
manifest_toml_file = joinpath(project, "Manifest.toml")
@test isfile(manifest_toml_file)
manifest_toml = TOML.parsefile(manifest_toml_file)
resolved_version = manifest_toml["julia_version"]
run(`juliaup add $resolved_version`)

output = readchomp(
addenv(
`julia +$each_version --startup-file=no --project=$project -e "import TestPackage; TestPackage.greet()"`,
Expand Down

0 comments on commit 66e8bbf

Please sign in to comment.