Skip to content

Commit e72b78b

Browse files
committed
use setup-python built-in dependency caching in GitHub actions
bump actions/checkout to v3, actions/setup-python to v4
1 parent 76009ba commit e72b78b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: Setup Python
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
26+
cache: pip
27+
cache-dependency-path: |
28+
setup.py
29+
requirements-ci.txt
2630
python-version: 3.8
2731

2832
- name: Install OpenBabel
@@ -32,14 +36,6 @@ jobs:
3236
# https://github.com/openbabel/openbabel/issues/2408#issuecomment-1014466193
3337
sudo ln -s /usr/include/openbabel3 /usr/local/include/openbabel3
3438
35-
- name: Cache pip
36-
uses: actions/cache@v2
37-
with:
38-
path: ~/.cache/pip
39-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-ci.txt', 'setup.py') }}
40-
restore-keys: |
41-
${{ runner.os }}-pip-
42-
4339
- name: Install dependencies
4440
run: |
4541
pip install -r requirements-ci.txt

0 commit comments

Comments
 (0)