From 46c396bc4fb4e669aa6471502401f297c90f67f5 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Tue, 20 Oct 2020 14:02:16 -0400 Subject: [PATCH] cache workflow update --- .github/workflows/tests.yaml | 18 ++++++++++++++++++ setup.py | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cc6cf9d..c28d903 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,15 +9,33 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up Python uses: actions/setup-python@v2 with: 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 + if: steps.myCacheStep.outputs.cache-hit != 'true' run: | python -m pip install -U pip python -m pip install -r dev-requirements.txt + - name: Linter run: make lint + - name: Test run: make test diff --git a/setup.py b/setup.py index 4bfbcd0..10f5f36 100644 --- a/setup.py +++ b/setup.py @@ -8,5 +8,9 @@ setup(name='mathgenerator', author_email='lukew25073@gmail.com', license='MIT', packages=find_packages(), - install_requires=[], + install_requires=[ + sympy, + numpy, + scipy + ], entry_points={})