Skip to content

Commit

Permalink
switching to pip for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleniemeyer committed Dec 22, 2022
1 parent 78ab411 commit d9d76b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dependencies:
- numpy
- scipy
- matplotlib
- sympy
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
numpy
scipy
matplotlib
nbinteract
scipy
jupyter-book
sympy
sphinx>=4.0,<5.0

0 comments on commit d9d76b8

Please sign in to comment.