Skip to content

Commit

Permalink
Update reference tests to latest v1.7 release (#349)
Browse files Browse the repository at this point in the history
* Update reference tests to latest v1.7 release

* Add comment about keeping branch protection rules up-to-date
  • Loading branch information
nickrobinson251 authored May 25, 2022
1 parent 1cb56bf commit bb3b54d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ jobs:
- os: windows-latest
arch: x86
include:
# Add 1.7.1 to run the reference tests
# Add specific version used to run the reference tests.
# Must be kept in sync with version check in `test/runtests.jl`,
# and with the branch protection rules on the repository which
# require this specific job to pass on all PRs
# (see Settings > Branches > Branch protection rules).
- os: ubuntu-latest
version: 1.7.1
version: 1.7.2
arch: x64
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/AllPlugins/docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.AllPlugins]]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterGitHubActions/docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.ArgTools]]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterGitLabCI/docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.ArgTools]]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterTravis/docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.ArgTools]]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/WackyOptions/docs/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.ArgTools]]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/WackyOptions/test/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.7.1"
julia_version = "1.7.2"
manifest_format = "2.0"

[[deps.Base64]]
Expand Down
10 changes: 6 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function with_pkg(f::Function, t::Template, pkg::AbstractString=pkgname())
patch = @patch uuid4() = UUID("c51a4d33-e9a4-4efb-a257-e0de888ecc28")
@suppress apply(patch) do
t(pkg)
end
end
try
f(pkg)
finally
Expand Down Expand Up @@ -101,8 +101,10 @@ mktempdir() do dir

# Quite a bit of output depends on the Julia version,
# and the test fixtures are made with Julia 1.7.
# TODO: Keep this on the latest stable Julia version.
if VERSION == v"1.7.1"
# TODO: Keep this on the latest stable Julia version, and update
# the version used by the corresponding CI job at the same time.
REFERENCE_VERSION = v"1.7.2"
if VERSION == REFERENCE_VERSION
# Ideally we'd use `with_clean_gitconfig`, but it's way too slow.
branch = LibGit2.getconfig(
"init.defaultBranch",
Expand All @@ -114,7 +116,7 @@ mktempdir() do dir
"Skipping reference tests, init.defaultBranch is set"
end
else
@info "Skipping reference tests" VERSION
@info "Skipping reference tests (requiring $REFERENCE_VERSION)" VERSION
end
else
@info "Git is not installed, skipping Git and reference tests"
Expand Down

0 comments on commit bb3b54d

Please sign in to comment.