Skip to content

Commit 3a7049f

Browse files
committed
ci: delete run on test branches
1 parent 63e2384 commit 3a7049f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/self-hosted-cpu.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Self-Hosted-CPU
22

33
on:
44
push:
5-
branches: [ master, self-hosted-runner ]
5+
branches: [ master ]
66
pull_request:
77
branches: [ master ]
88
workflow_dispatch:
@@ -79,7 +79,7 @@ jobs:
7979
- name: Check for unit tests results
8080
working-directory: ${{ env.build_dir }}
8181
run: |
82-
if cat ${{ env.unit-test-file }} | grep -q "FAILED"; then
82+
if grep -q "FAILED" ${{ env.unit-test-file }}; then
8383
exit 1
8484
fi
8585
@@ -98,6 +98,6 @@ jobs:
9898
- name: Check for regression tests results
9999
working-directory: ${{ env.build_dir }}/python
100100
run: |
101-
if cat ${{ env.regression-test-file }} | grep -q "FAILED"; then
101+
if grep -q "FAILED" ${{ env.regression-test-file }}; then
102102
exit 1
103103
fi

.github/workflows/self-hosted-gpu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Self-Hosted-GPU
22

33
on:
44
push:
5-
branches: [ master, self-hosted-runner ]
5+
branches: [ master ]
66
pull_request:
77
branches: [ master ]
88
workflow_dispatch:
@@ -79,7 +79,7 @@ jobs:
7979
- name: Check for unit tests results
8080
working-directory: ${{ env.build_dir }}
8181
run: |
82-
if cat ${{ env.unit-test-file }} | grep -q "FAILED"; then
82+
if grep -q "FAILED" ${{ env.unit-test-file }}; then
8383
exit 1
8484
fi
8585
@@ -98,6 +98,6 @@ jobs:
9898
- name: Check for regression tests results
9999
working-directory: ${{ env.build_dir }}/python
100100
run: |
101-
if cat ${{ env.regression-test-file }} | grep -q "FAILED"; then
101+
if grep -q "FAILED" ${{ env.regression-test-file }}; then
102102
exit 1
103103
fi

0 commit comments

Comments
 (0)