Skip to content

Commit a33774e

Browse files
committed
Setup E2E workflow dependencies on unit tests
1 parent 649f04a commit a33774e

10 files changed

+46
-38
lines changed

.github/workflows/e2e-async.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Async
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
async-optimization:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-bubblesort-benchmark.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Bubble Sort Benchmark
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
benchmark-bubble-sort-optimization:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-bubblesort-pytest-nogit.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Bubble Sort Pytest (No Git)
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
bubble-sort-optimization-pytest-no-git:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-bubblesort-unittest.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Bubble Sort Unittest
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
bubble-sort-optimization-unittest:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-coverage-optimization.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Coverage E2E
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
end-to-end-test-coverage:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-futurehouse-structure.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Futurehouse Structure
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
futurehouse-structure:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415

.github/workflows/e2e-init-optimization.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: E2E - Init Optimization
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
78
workflow_dispatch:
8-
99
jobs:
1010
init-optimization:
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1112
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1213
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1314

.github/workflows/e2e-topological-sort.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: E2E - Topological Sort
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
7-
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
88
workflow_dispatch:
99

1010
jobs:
1111
topological-sort-optimization:
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1314
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1415
runs-on: ubuntu-latest

.github/workflows/e2e-tracer-replay.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: E2E - Tracer Replay
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**' # Trigger for all paths
4+
workflow_run:
5+
workflows: ["Unit Tests"]
6+
types:
7+
- completed
78
workflow_dispatch:
8-
99
jobs:
1010
tracer-replay:
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1112
# Dynamically determine if environment is needed only when workflow files change and contributor is external
1213
environment: ${{ (github.event_name == 'workflow_dispatch' || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
1314

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: unit-tests
1+
name: Unit Tests
22

33
on:
44
push:
@@ -12,7 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
15-
continue-on-error: true
1615
runs-on: ubuntu-latest
1716
steps:
1817
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)