Skip to content

Commit 8b6cf53

Browse files
committed
ci: add error status of pipeline
1 parent 302b7cb commit 8b6cf53

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/self-hosted.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,17 @@ jobs:
6161

6262
steps:
6363
- name: Run unit-tests
64+
id: unit-test
6465
working-directory: ${{ env.build_dir }}
6566
run: bash scripts/run_tests_fallback.sh
6667
shell: bash
6768

6869
- name: Run regression-tests
70+
id: regression-test
6971
working-directory: ${{ env.build_dir }}/python
7072
run: bash run_tests.sh
7173
shell: bash
74+
75+
- name: Return test code
76+
if: ${{ steps.unit-test.outcome == 'failure' || steps.regression-test.outcome == 'failure' }}
77+
run: exit 1

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Ubuntu
44

55
on:
66
push:
7-
branches: [ master, self-hosted-runner ]
7+
branches: [ master, self-hosted-runnernner ]
88
pull_request:
99
branches: [ master ]
1010
workflow_dispatch:
@@ -17,9 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20-
- os: ubuntu-18.04
21-
cuda: "10.1"
22-
gcc: 8
20+
- os: ubuntu-24.04
21+
cuda: "12.8"
22+
gcc: 13
2323
env:
2424
build_dir: "build"
2525
config: "Release"

0 commit comments

Comments
 (0)