Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Aug 12, 2024
1 parent 63a976b commit 5e2a89b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/version_check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Turing.jl version
name: Check Turing.jl version consistency
on:
push:
branches:
Expand Down Expand Up @@ -120,21 +120,24 @@ jobs:
println("Latest Turing.jl version: ", latest_version)
if !major_minor_match(latest_version, project_version)
println("$(PROJECT_TOML_PATH) is out of date; updating")
update_project_toml(PROJECT_TOML_PATH, latest_version)
end
if !major_minor_match(latest_version, quarto_version)
println("$(QUARTO_YML_PATH) is out of date; updating")
update_quarto_yml(QUARTO_YML_PATH, latest_version)
end
if !major_minor_patch_match(latest_version, manifest_version)
# Attempt to automatically update Manifest
println("$(MANIFEST_TOML_PATH) is out of date; updating")
old_env = Pkg.project().path
Pkg.activate(".")
Pkg.update()
# Check if versions match now, error if not
Pkg.activate(old_env)
manifest_toml = TOML.parsefile("/Users/pyong/ppl/docs/Manifest.toml")
manifest_toml = TOML.parsefile(MANIFEST_TOML_PATH)
manifest_version = VersionNumber(manifest_toml["deps"]["Turing"][1]["version"])
if !major_minor_patch_match(latest_version, manifest_version)
error("Failed to update Manifest.toml to match latest Turing.jl version")
Expand Down

0 comments on commit 5e2a89b

Please sign in to comment.