Skip to content

Commit 290a754

Browse files
MementoRCclaude
andcommitted
fix: add shell bash directive to resolve Windows PowerShell syntax errors
Fix critical CI failure caused by bash syntax running on Windows PowerShell runners. Root cause: Windows runners were trying to execute bash commands like: `if [ "" == "true" ]; then` This caused PowerShell parser errors: "Missing '(' after 'if' in if statement" Solution: Add `shell: bash` to all run steps that use bash syntax, ensuring consistent bash execution across Windows/macOS/Linux runners. This resolves the exit code 1 failures that were blocking all CI jobs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e2d2c4f commit 290a754

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test-matrix.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,15 @@ jobs:
5050
continue-on-error: true
5151

5252
- name: Ensure .pixi environment exists
53+
shell: bash
5354
run: |
5455
if [ ! -d ".pixi" ]; then
5556
echo "No .pixi directory found, initializing pixi environment..."
5657
pixi run || pixi install --locked || pixi install || true
5758
fi
5859
5960
- name: Install dependencies (pixi) with retry and fallback
61+
shell: bash
6062
run: |
6163
n=0
6264
until [ "$n" -ge 3 ]
@@ -75,16 +77,19 @@ jobs:
7577
done
7678
7779
- name: Install dev dependencies using pixi
80+
shell: bash
7881
run: |
7982
pixi run -e ci dev
8083
8184
- name: Verify pixi environment
85+
shell: bash
8286
run: |
8387
pixi run -e ci python --version
8488
pixi run -e ci pip --version
8589
8690
- name: Select tests by marker
8791
id: select-tests
92+
shell: bash
8893
run: |
8994
if [[ "${{ matrix.test-type }}" == "unit" ]]; then
9095
echo "PYTEST_MARK=unit" >> $GITHUB_ENV
@@ -95,6 +100,7 @@ jobs:
95100
fi
96101
97102
- name: Run selected tests using pixi
103+
shell: bash
98104
run: |
99105
if [[ -n "$PYTEST_MARK" ]]; then
100106
pixi run -e ci pytest tests/ -m "$PYTEST_MARK" --json-report --json-report-file=pytest-${{ matrix.test-type }}.json
@@ -117,6 +123,7 @@ jobs:
117123
path: ./artifacts
118124

119125
- name: Aggregate and compare test results
126+
shell: bash
120127
run: |
121128
find ./artifacts -name "*.json" -exec cat {} + > all-results.json
122129
# Optionally, add custom aggregation/comparison logic here
@@ -131,6 +138,7 @@ jobs:
131138
if: always()
132139
env:
133140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141+
shell: bash
134142
run: |
135143
curl -X POST \
136144
-H "Authorization: token $GITHUB_TOKEN" \

0 commit comments

Comments
 (0)