From 390a9b536798ca39bfe29ff4a3d4aec8e25973ab Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:59:48 +0100 Subject: [PATCH 1/2] Separate test deps & move JuliaFormatter to action --- .github/workflows/Format.yml | 12 ++++++++++++ .gitignore | 3 ++- Project.toml | 21 --------------------- test/Project.toml | 19 +++++++++++++++++++ test/runtests.jl | 3 --- 5 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/Format.yml create mode 100644 test/Project.toml diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml new file mode 100644 index 0000000..dd2b2c5 --- /dev/null +++ b/.github/workflows/Format.yml @@ -0,0 +1,12 @@ +name: Format suggestions +on: + pull_request: + # this argument is not required if you don't use the `suggestion-label` input + types: [opened, reopened, synchronize, labeled, unlabeled] +jobs: + code-style: + runs-on: ubuntu-latest + steps: + - uses: julia-actions/julia-format@v4 + with: + version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1') diff --git a/.gitignore b/.gitignore index 3da890d..470aec4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ docs/build/ .vscode/settings.json docs/src/tutorial/*.md -docs/Manifest.toml \ No newline at end of file +docs/Manifest.toml +test/Manifest.toml \ No newline at end of file diff --git a/Project.toml b/Project.toml index abb1e72..ec7cb04 100644 --- a/Project.toml +++ b/Project.toml @@ -8,28 +8,7 @@ JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" [compat] -Aqua = "0.8" -BenchmarkTools = "1" -Documenter = "1" Graphs = "1.4.1" -InteractiveUtils = "1" JLD2 = "0.1.11, 0.2, 0.3, 0.4, 0.5, 0.6" -JuliaFormatter = "1" -MetaGraphs = "0.7, 0.8" SimpleTraits = "0.9" -Test = "1" julia = "1.6" - -[extras] -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" -Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" -InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" -JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899" -MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5" -SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[targets] -test = ["Aqua", "BenchmarkTools", "Documenter", "Graphs", "InteractiveUtils", "JuliaFormatter", "MetaGraphs", "SimpleTraits", "Test"] diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..5b04b0e --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,19 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" +InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" +MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5" +SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +Aqua = "0.8.14" +BenchmarkTools = "1" +Documenter = "1" +Graphs = "1.4.1" +InteractiveUtils = "1" +MetaGraphs = "0.7, 0.8" +SimpleTraits = "0.9" +Test = "1" diff --git a/test/runtests.jl b/test/runtests.jl index 4c969a7..4a719ee 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,9 +11,6 @@ DocMeta.setdocmeta!(MetaGraphsNext, :DocTestSetup, :(using MetaGraphsNext); recu @testset verbose = true "Code quality (Aqua.jl)" begin Aqua.test_all(MetaGraphsNext; ambiguities=false) end - @testset verbose = false "Code formatting (JuliaFormatter.jl)" begin - @test format(MetaGraphsNext; verbose=false, overwrite=false) - end @testset verbose = false "Doctests (Documenter.jl)" begin doctest(MetaGraphsNext) end From da0fcc5e8d834d85070effdd830207b6ed535afb Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Mon, 15 Dec 2025 10:04:36 +0100 Subject: [PATCH 2/2] Remove import --- test/runtests.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 4a719ee..ac55636 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,6 @@ using Aqua using Documenter using Graphs -using JuliaFormatter using MetaGraphsNext using Test