Commit f10e0202 authored by Nicholas Bollweg's avatar Nicholas Bollweg
Browse files

split pip(+wheel)/requirements.txt install for caching

parent 04350951
...@@ -7,7 +7,7 @@ on: ...@@ -7,7 +7,7 @@ on:
branches: '*' branches: '*'
env: env:
CACHE_EPOCH: 0 CACHE_EPOCH: 1
jobs: jobs:
build: build:
...@@ -39,6 +39,9 @@ jobs: ...@@ -39,6 +39,9 @@ jobs:
${{ env.CACHE_EPOCH }}-yarn-packages-${{ hashFiles('yarn.lock') }} ${{ env.CACHE_EPOCH }}-yarn-packages-${{ hashFiles('yarn.lock') }}
restore-keys: | restore-keys: |
${{ env.CACHE_EPOCH }}-yarn-packages- ${{ env.CACHE_EPOCH }}-yarn-packages-
- name: Setup pip (pip)
run: |
pip install -U pip setuptools wheel
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.cache/pip path: ~/.cache/pip
...@@ -46,9 +49,8 @@ jobs: ...@@ -46,9 +49,8 @@ jobs:
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} ${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: | restore-keys: |
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip- ${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-
- name: Setup - name: Setup pip (dependecies)
run: | run: |
pip install -U pip setuptools
pip install -r requirements.txt pip install -r requirements.txt
- name: Install - name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true' if: steps.cache-node-modules.outputs.cache-hit != 'true'
...@@ -73,8 +75,6 @@ jobs: ...@@ -73,8 +75,6 @@ jobs:
needs: [build] needs: [build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
name: jupyterlite dist ${{ github.run_number }} name: jupyterlite dist ${{ github.run_number }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment