Skip to content

Commit 9f33cd6

Browse files
amurekicodingjoe
authored andcommitted
CI: use cache provided by setup-python
Also, set lts node version
1 parent 9f75bdd commit 9f33cd6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ jobs:
2222
steps:
2323
- uses: actions/setup-python@v2.3.1
2424
- uses: actions/checkout@v2.4.0
25-
- uses: actions/cache@v2.1.7
2625
with:
27-
path: ~/.cache/pip
28-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29-
restore-keys: |
30-
${{ runner.os }}-pip-
26+
cache: 'pip'
27+
cache-dependency-path: 'requirements.txt'
3128
- run: python -m pip install -r requirements.txt
3229
- run: ${{ matrix.lint-command }}
3330

@@ -37,6 +34,8 @@ jobs:
3734
- run: sudo apt install -y gettext
3835
- uses: actions/setup-python@v2.3.1
3936
- uses: actions/setup-node@v2.5.0
37+
with:
38+
node-version: 'lts/*'
4039
- uses: actions/checkout@v2.4.0
4140
- name: Install Python dependencies
4241
run: python -m pip install --upgrade pip setuptools wheel twine readme-renderer
@@ -51,6 +50,9 @@ jobs:
5150
steps:
5251
- uses: actions/setup-python@v2.3.1
5352
- uses: actions/checkout@v2.4.0
53+
with:
54+
cache: 'pip'
55+
cache-dependency-path: 'requirements.txt'
5456
- run: python -m pip install --upgrade pip setuptools wheel
5557
- run: python -m pip install -r requirements.txt
5658
- run: python setup.py develop

0 commit comments

Comments
 (0)