mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
update cache workflow
This commit is contained in:
21
.github/workflows/tests.yaml
vendored
21
.github/workflows/tests.yaml
vendored
@@ -15,24 +15,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Cache Dependencies
|
- uses: actions/cache@v1
|
||||||
id: myCacheStep
|
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
cache-name: cache-pip-modules
|
|
||||||
with:
|
with:
|
||||||
path: ~/.pip
|
path: ~/.cache/pip
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/dev-requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install Dependencies
|
||||||
if: steps.myCacheStep.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U pip
|
pip install -r dev-requirements.txt
|
||||||
python -m pip install -r dev-requirements.txt
|
|
||||||
|
|
||||||
- name: Linter
|
- name: Linter
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|||||||
Reference in New Issue
Block a user