diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 970a1ec..d392d90 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,14 +14,28 @@ jobs: - uses: actions/checkout@v2 # Install dependencies - - name: Set up Python 3.7 + - name: Set up Python 3.9 uses: actions/setup-python@v1 with: - python-version: 3.7 + python-version: 3.9 + - name: cache installation + uses: actions/cache@v2 + with: + path: ${{ env.pythonLocation }} + key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }} + - name: Install dependencies run: | pip install -r requirements.txt + + - uses: actions/checkout@master + - uses: r-lib/actions/setup-r@v1 + with: + r-version: '4.1' # The R version to download (if necessary) and use. + - run: Rscript -e "install.packages('IRkernel')" + - run: Rscript -e "IRkernel::installspec()" + # Build the book - name: Build the book run: | diff --git a/requirements.txt b/requirements.txt index 7e821e4..8b5d5fc 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +jupyter jupyter-book matplotlib numpy