Skip to content

Commit 79f2381

Browse files
committed
1 parent 0cec70f commit 79f2381

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v4
3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v4
34+
uses: actions/setup-python@v5
3535
# It automatically takes care of pip cache, according to
3636
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#about-caching-workflow-dependencies
3737
with:
3838
python-version: ${{ matrix.python-version }}
39+
cache: 'pip'
3940

4041
- name: Install dependencies
4142
run: |
@@ -61,15 +62,16 @@ jobs:
6162
steps:
6263
- uses: actions/checkout@v4
6364
- name: Set up Python 3.9
64-
uses: actions/setup-python@v4
65+
uses: actions/setup-python@v5
6566
with:
6667
python-version: 3.9
68+
cache: 'pip'
6769
- name: Install dependencies
6870
run: |
6971
python -m pip install --upgrade pip
7072
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
7173
- name: Setup an updatable cache for Performance Baselines
72-
uses: actions/cache@v3
74+
uses: actions/cache@v4
7375
with:
7476
path: .perf.baseline
7577
key: ${{ runner.os }}-performance-${{ hashFiles('tests/test_benchmark.py') }}
@@ -101,9 +103,10 @@ jobs:
101103
steps:
102104
- uses: actions/checkout@v4
103105
- name: Set up Python 3.9
104-
uses: actions/setup-python@v4
106+
uses: actions/setup-python@v5
105107
with:
106108
python-version: 3.9
109+
cache: 'pip'
107110
- name: Build a package for release
108111
run: |
109112
python -m pip install build --user

0 commit comments

Comments
 (0)