Skip to content

Commit bd75408

Browse files
Update cache-pip.yml
1 parent 6f6c24b commit bd75408

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/cache-pip.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ on:
66

77
jobs:
88
test-cache:
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
os: [windows-latest, ubuntu-latest, macos-latest, macos-13, ubuntu-24.04-arm, ]
14-
python-version: ['graalpy-24.0']
9+
runs-on: ubuntu-latest
10+
1511

1612
steps:
1713
- name: Checkout repository
@@ -25,9 +21,19 @@ jobs:
2521
pip-version: '23.2.1'
2622
# update-environment: false
2723

28-
- run: echo "${{ steps.python.outputs.python-version }}"
24+
- name: Check pip version
25+
run: pip --version
26+
27+
- name: Cache pip dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-
34+
2935
30-
- run: pip install -r requirements.txt
36+
# - run: pip install -r requirements.txt
3137

3238

3339

0 commit comments

Comments
 (0)