Skip to content

Commit 27169c7

Browse files
authored
ci: add summary jobs for workflow branch protection (#1120)
1 parent dc6f5e9 commit 27169c7

File tree

3 files changed

+75
-54
lines changed

3 files changed

+75
-54
lines changed

.github/workflows/full-tests.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,27 @@ on:
1515
workflow_dispatch:
1616

1717
jobs:
18-
call-tests:
19-
strategy:
20-
matrix:
21-
os: [Windows, macOS] # exclude Ubuntu as it is available in pr-tests
22-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
23-
include:
24-
- os: Windows
25-
image: windows-2022
26-
- os: macOS
27-
image: macos-14
28-
fail-fast: false
18+
full-tests-matrix:
19+
strategy:
20+
matrix:
21+
os: [Windows, macOS] # exclude Ubuntu as it is available in pr-tests
22+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
23+
include:
24+
- os: Windows
25+
image: windows-2022
26+
- os: macOS
27+
image: macos-14
28+
fail-fast: false
2929

30-
uses: ./.github/workflows/_test.yml
31-
with:
32-
os: ${{ matrix.os }}
33-
image: ${{ matrix.image }}
34-
python-version: ${{ matrix.python-version }}
30+
uses: ./.github/workflows/_test.yml
31+
with:
32+
os: ${{ matrix.os }}
33+
image: ${{ matrix.image }}
34+
python-version: ${{ matrix.python-version }}
35+
full-tests-summary:
36+
name: Full Tests Summary
37+
needs: full-tests-matrix
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Verify Full Tests Completion
41+
run: echo "Full tests completed. All matrix jobs passed."

.github/workflows/latest-deps-tests.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,29 @@ on:
44
schedule:
55
- cron: "0 22 * * *" # 10:00 PM UTC, daily
66
jobs:
7-
call-tests:
8-
strategy:
9-
matrix:
10-
os: [Ubuntu]
11-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12-
include:
13-
- os: Ubuntu
14-
image: ubuntu-latest
15-
- os: macOS
16-
image: macos-15
17-
- os: Windows
18-
image: windows-latest
19-
fail-fast: false
20-
uses: ./.github/workflows/_test.yml
21-
with:
22-
os: ${{ matrix.os }}
23-
image: ${{ matrix.image }}
24-
python-version: ${{ matrix.python-version }}
25-
upgrade-deps: true
7+
latest-deps-tests-matrix:
8+
strategy:
9+
matrix:
10+
os: [Ubuntu]
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
include:
13+
- os: Ubuntu
14+
image: ubuntu-latest
15+
- os: macOS
16+
image: macos-15
17+
- os: Windows
18+
image: windows-latest
19+
fail-fast: false
20+
uses: ./.github/workflows/_test.yml
21+
with:
22+
os: ${{ matrix.os }}
23+
image: ${{ matrix.image }}
24+
python-version: ${{ matrix.python-version }}
25+
upgrade-deps: true
26+
latest-deps-tests-summary:
27+
name: Latest Deps Tests Summary
28+
needs: latest-deps-tests-matrix
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Verify Latest Dependencies Tests Completion
32+
run: echo "Latest Dependencies Tests completed. All matrix jobs passed."

.github/workflows/pr-tests.yml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
name: PR Tests
22

33
on:
4-
pull_request:
5-
types: [opened, synchronize, reopened, ready_for_review]
6-
# we don't ignore markdkowns to run pre-commits
7-
paths-ignore:
8-
- ".github/**"
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
# we don't ignore markdkowns to run pre-commits
7+
paths-ignore:
8+
- ".github/**"
99

1010
jobs:
11-
call-tests:
12-
strategy:
13-
matrix:
14-
os: [Ubuntu]
15-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16-
include:
17-
- os: Ubuntu
18-
image: ubuntu-latest
19-
fail-fast: false
20-
uses: ./.github/workflows/_test.yml
21-
with:
22-
os: ${{ matrix.os }}
23-
image: ${{ matrix.image }}
24-
python-version: ${{ matrix.python-version }}
11+
pr-tests-matrix:
12+
strategy:
13+
matrix:
14+
os: [Ubuntu]
15+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16+
include:
17+
- os: Ubuntu
18+
image: ubuntu-latest
19+
fail-fast: false
20+
uses: ./.github/workflows/_test.yml
21+
with:
22+
os: ${{ matrix.os }}
23+
image: ${{ matrix.image }}
24+
python-version: ${{ matrix.python-version }}
25+
pr-tests-summary:
26+
name: PR Tests Summary
27+
needs: pr-tests-matrix
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Confirm all PR tests passed
31+
run: echo "All PR Tests completed successfully"

0 commit comments

Comments
 (0)