From 2185de45c7811f6e214c1d5c7b32773018eca83c Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 14 Apr 2021 07:57:21 +0300 Subject: [PATCH] Update CI config (#498) * switch to Node.js 14.x * specify `FORCE_COLOR: 2` so that we get colored output * remove unneeded `CI: true` env variable since it's already being set by the runner * update to `actions/setup-node@v2` * add a comment about `wheel` installation Signed-off-by: XhmikosR --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fad1019..8e14b7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,8 +9,8 @@ on: - "**" env: - CI: true - NODE: 12.x + FORCE_COLOR: 2 + NODE: 14.x PYTHON_VERSION: "3.7" jobs: @@ -28,7 +28,7 @@ jobs: architecture: "x64" - name: Set up Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: "${{ env.NODE }}" @@ -39,10 +39,12 @@ jobs: key: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/requirements.txt') }} restore-keys: ${{ runner.os }}-pip-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/requirements.txt') }} + # This is needed otherwise pip warns: + # Using legacy 'setup.py install' for DEP, since package 'wheel' is not installed. - run: pip install --upgrade wheel - name: Install Python dependencies - run: python3 -m pip install -r requirements.txt + run: pip install -r requirements.txt - name: Install npm dependencies run: npm ci