-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNT] Swapped tensorflow and pytorch to install only CPU version (#2416)
* fix * added periodic to test workflow * swapped files * run all ubuntu versions * remove test file
- Loading branch information
1 parent
fa27298
commit a4b8b3f
Showing
4 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Pip install all_extras with CPU versions | ||
description: "For CI testing install the CPU version of dependencies with all extras if on ubuntu" | ||
|
||
inputs: | ||
additional_extras: | ||
description: "Comma-separated list of additional extras to install" | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install CPU TensorFlow | ||
if: runner.os == 'Linux' | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 30 | ||
max_attempts: 3 | ||
command: python -m pip install tensorflow-cpu | ||
|
||
- name: Install CPU PyTorch | ||
if: runner.os == 'Linux' | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 30 | ||
max_attempts: 3 | ||
command: python -m pip install torch --index-url https://download.pytorch.org/whl/cpu | ||
|
||
- name: Install dependencies | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 30 | ||
max_attempts: 3 | ||
command: > | ||
python -m pip install .[all_extras${{ inputs.additional_extras != '' && ',' || '' }}${{ inputs.additional_extras }}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters