Skip to content

Commit

Permalink
use micromamba so that PyTorch doesn't install CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Nov 12, 2024
1 parent 1947904 commit c3b8a7e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,28 @@ concurrency:
jobs:
deploy-book:
runs-on: ubuntu-latest

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write

# Required for micromamba to activate
defaults:
run:
shell: "bash -l {0}"

steps:
- uses: actions/checkout@v3

# Install dependencies
- name: Set up Python 3.11
uses: actions/setup-python@v4
- name: Set up Python via Micromamba
uses: mamba-org/setup-micromamba@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
pip install -r requirements.txt
environment-file: environment.yml
init-shell: bash
cache-environment: true
post-cleanup: "all"

# Build the book
- name: Build the book
Expand Down
14 changes: 14 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: deep-learning-intro-for-hep

dependencies:
- python=3.11
- jupyter-book
- ghp-import
- numpy
- matplotlib
- pandas
- iminuit
- scikit-learn
- pytorch-cpu
- h5py
- awkward
10 changes: 0 additions & 10 deletions requirements.txt

This file was deleted.

0 comments on commit c3b8a7e

Please sign in to comment.