forked from pytorch/text
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Validation Workflows to test-infra. Simplify setup logic (pyt…
- Loading branch information
Showing
2 changed files
with
4 additions
and
17 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 |
---|---|---|
@@ -1,22 +1,8 @@ | ||
conda create -y -n ${ENV_NAME} python=${MATRIX_PYTHON_VERSION} numpy | ||
conda activate ${ENV_NAME} | ||
export CONDA_CHANNEL="pytorch" | ||
export PIP_DOWNLOAD_URL="https://download.pytorch.org/whl/cpu" | ||
export TEXT_PIP_PREFIX="" | ||
|
||
if [[ ${MATRIX_CHANNEL} = "nightly" ]]; then | ||
export TEXT_PIP_PREFIX="--pre" | ||
export PIP_DOWNLOAD_URL="https://download.pytorch.org/whl/nightly/cpu" | ||
export CONDA_CHANNEL="pytorch-nightly" | ||
elif [[ ${MATRIX_CHANNEL} = "test" ]]; then | ||
export PIP_DOWNLOAD_URL="https://download.pytorch.org/whl/test/cpu" | ||
export CONDA_CHANNEL="pytorch-test" | ||
fi | ||
|
||
if [[ ${MATRIX_PACKAGE_TYPE} = "conda" ]]; then | ||
conda install -y torchtext pytorch -c ${CONDA_CHANNEL} | ||
conda install -y torchtext -c ${PYTORCH_CONDA_CHANNEL} | ||
else | ||
pip install ${TEXT_PIP_PREFIX} torchtext torch --extra-index-url ${PIP_DOWNLOAD_URL} | ||
pip install ${PYTORCH_PIP_PREFIX} torchtext --extra-index-url ${PYTORCH_PIP_DOWNLOAD_URL} | ||
fi | ||
|
||
python ./test/smoke_tests/smoke_tests.py |
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