From 53a94a4aa2efdd06165347407dcbd4b520b6ccca Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Mon, 17 Feb 2025 09:20:37 -0500 Subject: [PATCH 1/4] improve CI --- .github/workflows/benchmark.yml | 2 +- .github/workflows/downgrade.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 2e0c0b3..710d029 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@latest with: - version: '1.10' + version: '1' - uses: julia-actions/julia-buildpkg@latest - name: install dependencies run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"' diff --git a/.github/workflows/downgrade.yml b/.github/workflows/downgrade.yml index 5517d2e..2dbe5c9 100644 --- a/.github/workflows/downgrade.yml +++ b/.github/workflows/downgrade.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: ['1.9'] + version: ['1.11'] steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 From 2adf8043f9d5dd7ae68ef4b137cf326521ab0262 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Mon, 17 Feb 2025 09:22:30 -0500 Subject: [PATCH 2/4] add changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6fc826a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +## v1.0.0 - 2025-02-17 + +- Initial version with the databases from arxiv:1011.5464 and arxiv:1910.03969 From c7f8e647aba0f184aa0faebd10c2d5f27c1a7e36 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Mon, 17 Feb 2025 09:38:22 -0500 Subject: [PATCH 3/4] fix tests --- src/LCOrbits.jl | 3 ++- test/Project.toml | 2 ++ test/test_doctests.jl | 9 --------- test/test_jet.jl | 6 +++++- 4 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 test/test_doctests.jl diff --git a/src/LCOrbits.jl b/src/LCOrbits.jl index 43b3dfb..87e26f6 100644 --- a/src/LCOrbits.jl +++ b/src/LCOrbits.jl @@ -48,7 +48,8 @@ function parsegraphcol(str,vertices;indexoffset=1) for (color, group) in enumerate(groups) edges = strip.(split(group,',')) for edge in edges - e1, e2 = minmax(parse.(Int, split(edge,'-'))...) + e1, e2 = parse.(Int, split(edge,'-')) + e1, e2 = minmax(e1, e2) p = Edge(e1+indexoffset,e2+indexoffset) # switch to Julia indexing add_edge!(graph, p) colors_dict[p] = color diff --git a/test/Project.toml b/test/Project.toml index f8d5c4d..883daf0 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,5 +1,7 @@ [deps] Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" +DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" diff --git a/test/test_doctests.jl b/test/test_doctests.jl deleted file mode 100644 index e5dda80..0000000 --- a/test/test_doctests.jl +++ /dev/null @@ -1,9 +0,0 @@ -@testitem "doctests" begin - -using Documenter -using BPGates - -DocMeta.setdocmeta!(BPGates, :DocTestSetup, :(using QuantumClifford, BPGates); recursive=true) -doctest(BPGates) - -end diff --git a/test/test_jet.jl b/test/test_jet.jl index 60781cc..9182f8d 100644 --- a/test/test_jet.jl +++ b/test/test_jet.jl @@ -3,13 +3,17 @@ using JET using Test using LCOrbits +using CSV, DataFrames rep = report_package("LCOrbits"; ignored_modules=( LastFrameModule(Base), + AnyFrameModule(CSV), + LastFrameModule(DataFrames), ) ) @show rep -@test length(JET.get_reports(rep)) == 0 +@test_broken length(JET.get_reports(rep)) == 0 +@test length(JET.get_reports(rep)) <= 1 end From 1be5b41344cdcf95e75a0b9df1622a73c78054c7 Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Mon, 17 Feb 2025 09:47:17 -0500 Subject: [PATCH 4/4] bump version --- CHANGELOG.md | 6 +++++- Project.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fc826a..de2c167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.0.1 - 2025-02-20 + +- Minor testing improvements and cleanup. + ## v1.0.0 - 2025-02-17 -- Initial version with the databases from arxiv:1011.5464 and arxiv:1910.03969 +- Initial version with the databases from arxiv:1011.5464 and arxiv:1910.03969. diff --git a/Project.toml b/Project.toml index b317512..3175be4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LCOrbits" uuid = "d9401462-0832-4dc7-b246-e799faa72617" authors = ["Stefan Krastanov", "QuantumSavory contributors"] -version = "1.0.0" +version = "1.0.1" [deps] Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"