Skip to content

Commit

Permalink
CI torch version search fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Mar 6, 2024
1 parent 7c0c72d commit ee264b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
- name: MACE
run: |
echo "search for torch version"
set +o pipefail
python3 -m pip install torch== 2>&1 | cat
torch_version=$( python3 -m pip install torch== 2>&1 | fgrep 'from versions' | sed -e 's/.* //' -e 's/)//' )
echo "found torch version $torch_version, installing cpu-only variant"
Expand Down

0 comments on commit ee264b5

Please sign in to comment.