From aedd0711ea131579025dcdf8c3765a393861473f Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 20 Feb 2026 17:40:41 -0500 Subject: [PATCH] Apply branch_protection_fixes patch --- .github/workflows/IntegrationTest.yml | 17 +++++++++++++++++ .github/workflows/Tests.yml | 19 ++++++++++++++++++- Project.toml | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 8cabbc2..02e6fd4 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -7,6 +7,12 @@ on: paths: - "Project.toml" pull_request: + types: + - "opened" + - "synchronize" + - "reopened" + - "ready_for_review" + - "converted_to_draft" paths: - "Project.toml" jobs: @@ -27,3 +33,14 @@ jobs: with: localregistry: "https://github.com/ITensor/ITensorRegistry.git" pkg: "${{ matrix.pkg }}" + integration-gate: + name: "IntegrationTest" + needs: "integration-test" + if: "${{ always() }}" + runs-on: "ubuntu-latest" + steps: + - name: "Fail if any downstream integration test failed" + run: | + echo "integration-test.result = ${{ needs.integration-test.result }}" + test "${{ needs.integration-test.result }}" = "success" + diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 93e646e..db43292 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -8,7 +8,13 @@ on: tags: "*" paths-ignore: - "docs/**" - pull_request: ~ + pull_request: + types: + - "opened" + - "synchronize" + - "reopened" + - "ready_for_review" + - "converted_to_draft" workflow_dispatch: ~ concurrency: group: "${{ github.workflow }}-${{ github.ref }}" @@ -34,3 +40,14 @@ jobs: localregistry: "https://github.com/ITensor/ITensorRegistry.git" secrets: CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" + tests-gate: + name: "Tests" + needs: "tests" + if: "${{ always() }}" + runs-on: "ubuntu-latest" + steps: + - name: "Fail if any matrix leg failed" + run: | + echo "tests.result = ${{ needs.tests.result }}" + test "${{ needs.tests.result }}" = "success" + diff --git a/Project.toml b/Project.toml index 2d24942..dfcf6bb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FunctionImplementations" uuid = "7c7cc465-9c6a-495f-bdd1-f42428e86d0c" -version = "0.4.3" +version = "0.4.4" authors = ["ITensor developers and contributors"] [workspace]