Skip to content

Commit 2c7b103

Browse files
committed
Different if/else structure for windows tests
1 parent d12c005 commit 2c7b103

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
27+
- name: Set temp directories on Windows
28+
if: matrix.os == 'windows-latest'
29+
run: |
30+
echo "TMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
31+
echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
2732
- name: Install dependencies
2833
run: |
29-
if [ "$RUNNER_OS" == "Windows" ]; then
30-
echo "TMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
31-
echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
32-
fi
3334
git config --global user.email "[email protected]"
3435
git config --global user.name "Your Name"
3536
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)