Skip to content

Commit 8671224

Browse files
authored
Apply branch_protection_fixes patch (#26)
1 parent 1700960 commit 8671224

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/IntegrationTest.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
- "reopened"
1414
- "ready_for_review"
1515
- "converted_to_draft"
16+
paths:
17+
- "Project.toml"
1618
jobs:
1719
integration-test:
1820
name: "IntegrationTest"
@@ -24,3 +26,14 @@ jobs:
2426
with:
2527
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
2628
pkg: "${{ matrix.pkg }}"
29+
integration-gate:
30+
name: "IntegrationTest"
31+
needs: "integration-test"
32+
if: "${{ always() }}"
33+
runs-on: "ubuntu-latest"
34+
steps:
35+
- name: "Fail if any downstream integration test failed"
36+
run: |
37+
echo "integration-test.result = ${{ needs.integration-test.result }}"
38+
test "${{ needs.integration-test.result }}" = "success"
39+

.github/workflows/Tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ on:
88
tags: "*"
99
paths-ignore:
1010
- "docs/**"
11-
pull_request: ~
11+
pull_request:
12+
types:
13+
- "opened"
14+
- "synchronize"
15+
- "reopened"
16+
- "ready_for_review"
17+
- "converted_to_draft"
1218
workflow_dispatch: ~
1319
concurrency:
1420
group: "${{ github.workflow }}-${{ github.ref }}"
@@ -34,3 +40,14 @@ jobs:
3440
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
3541
secrets:
3642
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
43+
tests-gate:
44+
name: "Tests"
45+
needs: "tests"
46+
if: "${{ always() }}"
47+
runs-on: "ubuntu-latest"
48+
steps:
49+
- name: "Fail if any matrix leg failed"
50+
run: |
51+
echo "tests.result = ${{ needs.tests.result }}"
52+
test "${{ needs.tests.result }}" = "success"
53+

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BackendSelection"
22
uuid = "680c2d7c-f67a-4cc9-ae9c-da132b1447a5"
3-
version = "0.1.12"
3+
version = "0.1.13"
44
authors = ["ITensor developers <support@itensor.org> and contributors"]
55

66
[compat]

0 commit comments

Comments
 (0)