Skip to content

Commit

Permalink
Try to fix CI warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed May 12, 2024
1 parent f3218f9 commit c917cab
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
- name: Get pip cache dir Unix
if: matrix.os != 'windows-latest'
id: pip-cache-unix
run: |
python -m pip install --upgrade pip
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Get pip cache dir Windows
if: matrix.os == 'windows-latest'
id: pip-cache-windows
run: |
python -m pip install --upgrade pip
echo "dir=$(pip cache dir)" >> $env:GITHUB_OUTPUT
- name: Cache dependencies
id: cache-dep
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
path: if [[ '${{ matrix.os }}' == 'windows-latest' ]]; then ${{ steps.pip-cache-windows.outputs.dir }}; else ${{ steps.pip-cache-unix.outputs.dir }}; fi
key: ${{ matrix.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/extra_requirements.txt') }}-${{ hashFiles('**/legacy_requirements.txt') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-pip-
Expand Down

0 comments on commit c917cab

Please sign in to comment.