Skip to content

Commit b082678

Browse files
committed
..
1 parent 06c18f3 commit b082678

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: .github/workflows/build.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ jobs:
4141
pip install -e .
4242
python -c "import autogen"
4343
pip install -e. pytest mock
44-
- name: Set environment variable based on OS
44+
- name: Set AUTOGEN_USE_DOCKER based on OS
4545
run: |
46-
if [ "${{ matrix.os }}" = "macos-latest" ]; then
47-
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV
48-
elif [ "${{ matrix.os }}" = "windows-latest" ]; then
49-
echo "AUTOGEN_USE_DOCKER=False" >> $GITHUB_ENV
50-
fi
46+
if ($env:matrix_os -eq "macos-latest" -or $env:matrix_os -eq "windows-latest") {
47+
"AUTOGEN_USE_DOCKER=False" | Out-File -Append -FilePath $env:GITHUB_ENV
48+
} # Add other conditions or an else clause as needed
49+
shell: pwsh # Specify pwsh as the shell for this step
5150
- name: Test with pytest
5251
if: matrix.python-version != '3.10'
5352
run: |

0 commit comments

Comments
 (0)