diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index a279b8b9..04278a4f 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -49,9 +49,16 @@ jobs: - name: Get pip cache dir id: pip-cache + shell: bash run: | python -m pip install --upgrade pip - echo "::set-output name=dir::$(pip cache dir)" + if [[ '${{ matrix.os }}' == 'windows-latest' ]]; then + echo "dir=$(pip cache dir)" >> $env.GITHUB_OUTPUT + echo env.GITHUB_OUTPUT=$env.GITHUB_OUTPUT + else + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT + echo GITHUB_OUTPUT=$GITHUB_OUTPUT + fi - name: Cache dependencies id: cache-dep @@ -77,7 +84,7 @@ jobs: shell: bash - name: Run unit tests without extra packages as root run: | - if [[ '${{ matrix.os }}' != 'windows-latest' ]]; then + if [[ '${{ matrix.os }}' != 'windows-latest' ]]; then # provide the same path as non-root to get the correct virtualenv sudo env "PATH=$PATH" python -m pyfakefs.tests.all_tests_without_extra_packages fi @@ -97,7 +104,7 @@ jobs: shell: bash - name: Run performance tests run: | - if [[ '${{ matrix.os }}' != 'macOS-latest' ]]; then + if [[ '${{ matrix.os }}' != 'macOS-latest' ]]; then export TEST_PERFORMANCE=1 python -m pyfakefs.tests.performance_test fi