From ade1271f068ccfc6c4e149ab5acdab223d43d130 Mon Sep 17 00:00:00 2001 From: Masahiro Hiramori Date: Thu, 17 Oct 2024 10:47:44 +0900 Subject: [PATCH] should be in powershell format --- .github/workflows/pythonapp.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 0713e82e..1245bbaf 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -145,14 +145,12 @@ jobs: - name: Use Java 21 on Windows if: ${{ startsWith(matrix.os, 'windows')}} - run: setx JAVA_HOME "%JAVA_HOME_21_X64%" + run: $env:JAVA_HOME=$env:JAVA_HOME_21_X64 - name: Print Environmental Variables on Windows if: ${{ startsWith(matrix.os, 'windows')}} run: | - echo %JAVA_HOME% - echo %JAVA_HOME_21_X64% - echo $JAVA_HOME - echo $JAVA_HOME_21_X64 + echo $env:JAVA_HOME + echo $env:JAVA_HOME_21_X64 # We don't run pytest for ubuntu py3.9 since we do coverage for that case. - name: Test with pytest if: ${{ matrix.python-version != '3.9' || startsWith(matrix.os, 'ubuntu') != true }}