CI: switch to Node.js 16/npm >= 7 and move to native pip caching

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2021-11-28 13:50:06 +02:00
parent cf1e5f1060
commit 2368f82757

View File

@@ -10,7 +10,7 @@ on:
env:
FORCE_COLOR: 2
NODE: 14.x
NODE: 16
PYTHON_VERSION: "3.7"
jobs:
@@ -26,6 +26,7 @@ jobs:
with:
python-version: "${{ env.PYTHON_VERSION }}"
architecture: "x64"
cache: pip
- name: Set up Node.js
uses: actions/setup-node@v2
@@ -33,13 +34,6 @@ jobs:
node-version: "${{ env.NODE }}"
cache: npm
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/requirements.txt') }}
- name: Install Python dependencies
run: pip install -r requirements.txt