mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
cache workflow update
This commit is contained in:
18
.github/workflows/tests.yaml
vendored
18
.github/workflows/tests.yaml
vendored
@@ -9,15 +9,33 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
|
- name: Cache Primes
|
||||||
|
id: myCacheStep
|
||||||
|
uses: actions/cache@v2
|
||||||
|
env:
|
||||||
|
cache-name: cache-pip-modules
|
||||||
|
with:
|
||||||
|
path: ~/.pip
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
if: steps.myCacheStep.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
python -m pip install -U pip
|
python -m pip install -U pip
|
||||||
python -m pip install -r dev-requirements.txt
|
python -m pip install -r dev-requirements.txt
|
||||||
|
|
||||||
- name: Linter
|
- name: Linter
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|||||||
6
setup.py
6
setup.py
@@ -8,5 +8,9 @@ setup(name='mathgenerator',
|
|||||||
author_email='lukew25073@gmail.com',
|
author_email='lukew25073@gmail.com',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=[],
|
install_requires=[
|
||||||
|
sympy,
|
||||||
|
numpy,
|
||||||
|
scipy
|
||||||
|
],
|
||||||
entry_points={})
|
entry_points={})
|
||||||
|
|||||||
Reference in New Issue
Block a user