From 463740b0c54547f868bec6d41f88dd7b24d804e2 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Thu, 13 Feb 2025 11:55:34 -0500 Subject: [PATCH 1/4] Add IntegrationTest workflow --- .github/workflows/IntegrationTest.yml | 25 +++++++++++++++++++++++++ Project.toml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/IntegrationTest.yml diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml new file mode 100644 index 0000000..4ca42c6 --- /dev/null +++ b/.github/workflows/IntegrationTest.yml @@ -0,0 +1,25 @@ +name: "IntegrationTest" + +on: + push: + branches: + - 'main' + tags: '*' + paths: + - 'Project.toml' + pull_request: + paths: + - 'Project.toml' + +jobs: + integration-test: + name: "IntegrationTest" + strategy: + matrix: + repo: + - 'ITensor/BlockSparseArrays.jl' + - 'ITensor/QuantumOperatorDefinitions.jl' + uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main" + with: + localregistry: "https://github.com/ITensor/ITensorRegistry.git" + repo: "${{ matrix.repo }}" diff --git a/Project.toml b/Project.toml index c1f16a9..134b04f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SymmetrySectors" uuid = "f8a8ad64-adbc-4fce-92f7-ffe2bb36a86e" authors = ["ITensor developers and contributors"] -version = "0.1.4" +version = "0.1.5" [deps] BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e" From 138bda7ab7d80cdb5f3d3b2e1c1b1783ab495dec Mon Sep 17 00:00:00 2001 From: mtfishman Date: Thu, 13 Feb 2025 13:20:52 -0500 Subject: [PATCH 2/4] Add IntegrationTestRequest workflow --- .github/workflows/IntegrationTestRequest.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/IntegrationTestRequest.yml diff --git a/.github/workflows/IntegrationTestRequest.yml b/.github/workflows/IntegrationTestRequest.yml new file mode 100644 index 0000000..50638b2 --- /dev/null +++ b/.github/workflows/IntegrationTestRequest.yml @@ -0,0 +1,14 @@ +name: "Integration Request" + +on: + issue_comment: + types: [created] + +jobs: + integrationrequest: + if: | + github.event.issue.pull_request && + contains(fromJSON('["OWNER", "COLLABORATOR", "MEMBER"]'), github.event.comment.author_association) + uses: ITensor/ITensorActions/.github/workflows/IntegrationTestRequest.yml@main + with: + localregistry: https://github.com/ITensor/ITensorRegistry.git From 8f36bf5d255d2487ad616ccb2d85c8fa2b77e162 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Thu, 13 Feb 2025 16:06:16 -0500 Subject: [PATCH 3/4] Add Registrator workflow --- .github/workflows/Registrator.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/Registrator.yml diff --git a/.github/workflows/Registrator.yml b/.github/workflows/Registrator.yml new file mode 100644 index 0000000..255e2af --- /dev/null +++ b/.github/workflows/Registrator.yml @@ -0,0 +1,24 @@ +name: Register Package +on: + workflow_dispatch: + pull_request: + types: + - closed + paths: + - 'Project.toml' + branches: + - 'master' + - 'main' + +permissions: + contents: write + pull-requests: write + +jobs: + Register: + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true + uses: "ITensor/ITensorActions/.github/workflows/Registrator.yml@main" + with: + localregistry: ITensor/ITensorRegistry + secrets: + REGISTRATOR_KEY: ${{ secrets.REGISTRATOR_KEY }} From d8850fc2749b0dc5b8b20e868f6cc6dd2272fa7d Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Thu, 13 Feb 2025 17:09:36 -0500 Subject: [PATCH 4/4] Add downstream test for TensorAlgebra.jl --- .github/workflows/IntegrationTest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 4ca42c6..db4376d 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -19,6 +19,7 @@ jobs: repo: - 'ITensor/BlockSparseArrays.jl' - 'ITensor/QuantumOperatorDefinitions.jl' + - 'ITensor/TensorAlgebra.jl' uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main" with: localregistry: "https://github.com/ITensor/ITensorRegistry.git"