diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index 0d3e9f8..d9071c2 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -13,6 +13,8 @@ on: - "reopened" - "ready_for_review" - "converted_to_draft" + paths: + - "Project.toml" jobs: integration-test: name: "IntegrationTest" @@ -24,3 +26,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 755f2bc..6bf36a7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "ITensorDocsNext" uuid = "701fd796-f527-45da-9a53-2681c1a90c45" -version = "0.1.2" +version = "0.1.3" authors = ["ITensor developers and contributors"] [compat]