diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 316b60c..5a25593 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -18,20 +18,25 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.9 + - name: Upgrade pip + run: python3 -m pip install --upgrade pip setuptools wheel - - name: Setup Miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + - name: Cache dependencies + uses: actions/cache@v2 with: - environment-file: environment.yml - activate-environment: me373-book - python-version: 3.9 - auto-activate-base: false + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/freeze.txt') }} + restore-keys: ${{ runner.os }}-pip- + + - name: Install dependencies + run: | + python3 -m pip install --no-deps -r freeze.txt # Build the book - name: Build the book shell: bash -l {0} run: | - jupyter-book build book + jupyter-book build book -vv # Push the book's HTML to github-pages - name: GitHub Pages action diff --git a/environment.yml b/environment.yml index 25347d4..c3a4246 100644 --- a/environment.yml +++ b/environment.yml @@ -7,3 +7,4 @@ dependencies: - numpy - scipy - matplotlib + - sympy diff --git a/requirements.txt b/requirements.txt index 0c9dae2..d8f956d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ numpy scipy matplotlib -nbinteract -scipy jupyter-book +sympy +sphinx>=4.0,<5.0