Skip to content

Commit

Permalink
add torch dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Feb 21, 2023
1 parent 7136e02 commit 4eb7334
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/actions/setup-venv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ runs:
# Set up virtual environment without cache hit.
test -d .venv || virtualenv -p $(which python) --copies --reset-app-data .venv
. .venv/bin/activate
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
pip install -e .[dev]
- if: steps.virtualenv-cache.outputs.cache-hit == 'true'
Expand All @@ -52,3 +53,5 @@ runs:
# Show environment info.
. .venv/bin/activate
echo "✓ Installed $(python --version) virtual environment to $(which python)"
echo "========= Python packages ==========="
pip freeze
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Add your own dependencies to this file.
torch

0 comments on commit 4eb7334

Please sign in to comment.