Skip to content

Commit 033366a

Browse files
committed
test: cleanup in failed pipeline
1 parent 3ea12e7 commit 033366a

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

.github/workflows/self-hosted.yml

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,53 @@ jobs:
5050
needs: build
5151
runs-on: self-hosted
5252
env:
53-
unit-test-file: test_all.txt
54-
regression-test-file: test_regression.txt
53+
unit-test-file: test_all.log
54+
regression-test-file: test_regression.log
5555
strategy:
5656
fail-fast: false
5757
matrix:
5858
include:
5959
- gpu: NVIDIA-GeForce-GT-1030
6060

6161
steps:
62-
- name: Run unit-tests
63-
working-directory: ${{ env.build_dir }}
62+
- name: Fail
6463
run: |
65-
source scripts/run_tests_all.sh | tee ${{ env.unit-test-file }}
64+
exit 1
65+
# - name: Run unit-tests
66+
# working-directory: ${{ env.build_dir }}
67+
# run: |
68+
# source scripts/run_tests_all.sh | tee ${{ env.unit-test-file }}
6669

67-
- name: Upload unit tests resutls
68-
uses: actions/upload-artifact@v4
69-
with:
70-
name: ${{ env.unit-test-file }}
71-
path: ${{ env.build_dir }}/${{ env.unit-test-file }}
70+
# - name: Upload unit tests resutls
71+
# uses: actions/upload-artifact@v4
72+
# with:
73+
# name: ${{ env.unit-test-file }}
74+
# path: ${{ env.build_dir }}/${{ env.unit-test-file }}
7275

73-
- name: Check for unit tests results
74-
working-directory: ${{ env.build_dir }}
75-
run: |
76-
if grep -q "FAILED" ${{ env.unit-test-file }}; then
77-
exit 1
78-
fi
76+
# - name: Check for unit tests results
77+
# working-directory: ${{ env.build_dir }}
78+
# run: |
79+
# if grep -q "FAILED" ${{ env.unit-test-file }}; then
80+
# exit 1
81+
# fi
7982

80-
- name: Run regression-tests
81-
working-directory: ${{ env.build_dir }}/python
82-
run: |
83-
source run_tests.sh | tee ${{ env.regression-test-file }}
83+
# - name: Run regression-tests
84+
# working-directory: ${{ env.build_dir }}/python
85+
# run: |
86+
# source run_tests.sh 2>&1 | tee ${{ env.regression-test-file }}
8487

85-
- name: Upload regression tests resutls
86-
uses: actions/upload-artifact@v4
87-
with:
88-
name: ${{ env.regression-test-file }}
89-
path: ${{ env.build_dir }}/python/${{ env.regression-test-file }}
88+
# - name: Upload regression tests resutls
89+
# uses: actions/upload-artifact@v4
90+
# with:
91+
# name: ${{ env.regression-test-file }}
92+
# path: ${{ env.build_dir }}/python/${{ env.regression-test-file }}
9093

91-
- name: Check for regression tests results
92-
working-directory: ${{ env.build_dir }}/python
93-
run: |
94-
if grep -q "FAILED" ${{ env.regression-test-file }}; then
95-
exit 1
96-
fi
94+
# - name: Check for regression tests results
95+
# working-directory: ${{ env.build_dir }}/python
96+
# run: |
97+
# if grep -q "FAILED" ${{ env.regression-test-file }}; then
98+
# exit 1
99+
# fi
97100

98101
clean:
99102
name: Cleanup workspace

0 commit comments

Comments
 (0)