diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 69a4feb..cf6133c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,6 +19,7 @@ jobs: matrix: version: - 'min' + - 'lts' - '1' - 'pre' os: diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml new file mode 100644 index 0000000..fe8b9dc --- /dev/null +++ b/.github/workflows/Format.yml @@ -0,0 +1,13 @@ +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') + suggestion-label: 'format-suggest' # leave this unset or empty to show suggestions for all PRs diff --git a/.gitignore b/.gitignore index 96cfdc5..7acdee6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.jl.cov *.jl.*.cov *.jl.mem -/Manifest.toml +Manifest.toml docs/build/ diff --git a/Project.toml b/Project.toml index cd2abf5..33973a7 100644 --- a/Project.toml +++ b/Project.toml @@ -10,24 +10,8 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [compat] -Aqua = "0.8" -Documenter = "1" Graphs = "1.7" -JuliaFormatter = "1" LinearAlgebra = "1.6" Markdown = "1.6" SparseArrays = "1.6" -Test = "1.6" julia = "1.6" - -[extras] -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" -Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" -JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899" -LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[targets] -test = ["Aqua", "Documenter", "Graphs", "JuliaFormatter", "LinearAlgebra", "SparseArrays", "Test"] diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..2297ec0 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,19 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" +Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622" +SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[compat] +Aqua = "0.8" +Documenter = "1" +Graphs = "1.7" +LinearAlgebra = "1.6" +SparseArrays = "1.6" +Test = "1.6" + +[sources] +SimpleWeightedGraphs = { path = ".." } diff --git a/test/runtests.jl b/test/runtests.jl index 642e407..6cd109d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,6 @@ using Aqua using Documenter using Graphs -using JuliaFormatter using LinearAlgebra using SimpleWeightedGraphs using Test @@ -37,9 +36,6 @@ tests = [ @testset verbose = true "Code quality (Aqua.jl)" begin Aqua.test_all(SimpleWeightedGraphs; ambiguities=false) end - @testset verbose = false "Code formatting (JuliaFormatter.jl)" begin - @test format(SimpleWeightedGraphs; verbose=false, overwrite=false) - end @testset verbose = false "Doctests (Documenter.jl)" begin doctest(SimpleWeightedGraphs) end