Skip to content

Commit 77dc18b

Browse files
committed
workflows: include os runner as part of job name and test results
1 parent 082873a commit 77dc18b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/beam_PostCommit_Python.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ env:
5353

5454
jobs:
5555
beam_PostCommit_Python:
56-
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
56+
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }}) [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]
5757
runs-on: ${{ matrix.os }}
5858
timeout-minutes: 240
5959
strategy:
@@ -118,7 +118,7 @@ jobs:
118118
uses: actions/upload-artifact@v4
119119
if: failure()
120120
with:
121-
name: Python ${{ matrix.python_version }} Test Results
121+
name: Python ${{ matrix.python_version }} Test Results [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]
122122
path: '**/pytest*.xml'
123123
- name: Publish Python Test Results
124124
uses: EnricoMi/publish-unit-test-result-action@v2
@@ -128,3 +128,4 @@ jobs:
128128
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
129129
files: '**/pytest*.xml'
130130
large_files: true
131+
check_name: 'Python ${{ matrix.python_version }} Test Results [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]'

.github/workflows/beam_PreCommit_Python_ML.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ env:
5757

5858
jobs:
5959
beam_PreCommit_Python_ML:
60-
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
60+
name: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }}) [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]
6161
runs-on: ${{ matrix.os }}
6262
timeout-minutes: 180
6363
strategy:
@@ -113,7 +113,7 @@ jobs:
113113
uses: actions/upload-artifact@v4
114114
if: failure()
115115
with:
116-
name: Python ${{ matrix.python_version }} Test Results
116+
name: Python ${{ matrix.python_version }} Test Results [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]
117117
path: '**/pytest*.xml'
118118
- name: Publish Python Test Results
119119
uses: EnricoMi/publish-unit-test-result-action@v2
@@ -123,3 +123,4 @@ jobs:
123123
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
124124
files: '**/pytest*.xml'
125125
large_files: true
126+
check_name: 'Python ${{ matrix.python_version }} Test Results [${{ contains(matrix.os, 'self-hosted') && 'self-hosted' || 'ubuntu-latest' }}]'

0 commit comments

Comments
 (0)