diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml new file mode 100644 index 0000000..db4376d --- /dev/null +++ b/.github/workflows/IntegrationTest.yml @@ -0,0 +1,26 @@ +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' + - 'ITensor/TensorAlgebra.jl' + uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main" + with: + localregistry: "https://github.com/ITensor/ITensorRegistry.git" + repo: "${{ matrix.repo }}" 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 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 }} 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"