Skip to content

Commit 7431fb5

Browse files
committed
ci: add double brackets
1 parent fbab403 commit 7431fb5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/self-hosted.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ jobs:
6464
working-directory: ${{ env.build_dir }}
6565
run: |
6666
chmod +x scripts/run_tests_fallback.sh
67-
./scripts/run_tests_fallback.sh | tee >(grep -E "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
68-
if [ $HAS_ERRORS == true ]; then
67+
./scripts/run_tests_fallback.sh | tee >(grep -qE "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
68+
if [[ $HAS_ERRORS == "true" ]]; then
6969
exit 1
7070
fi
7171
7272
- name: Run regression-tests
7373
working-directory: ${{ env.build_dir }}/python
7474
run: |
7575
chmod +x run_tests.sh
76-
./run_tests.sh | tee >(grep -E "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
77-
if [ $HAS_ERRORS == true ]; then
76+
./run_tests.sh | tee >(grep -qE "FAILED|ERROR" && echo "HAS_ERRORS=true" >> $GITHUB_ENV)
77+
if [[ $HAS_ERRORS == "true" ]]; then
7878
exit 1
7979
fi

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
include:
2020
- os: ubuntu-22.04
2121
cuda: "11.7"
22-
gcc: 10
22+
gcc: 9
2323
env:
2424
build_dir: "build"
2525
config: "Release"

0 commit comments

Comments
 (0)