This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11
22if [[ ${MATRIX_PACKAGE_TYPE} = " conda" ]]; then
3- conda install -y torchtext -c ${PYTORCH_CONDA_CHANNEL}
3+ # special case for Python 3.11
4+ if [[ ${MATRIX_PYTHON_VERSION} == ' 3.11' ]]; then
5+ conda install -y torchtext -c malfet -c ${PYTORCH_CONDA_CHANNEL}
6+ else
7+ conda install -y torchtext -c ${PYTORCH_CONDA_CHANNEL}
8+ fi
49else
510 pip install ${PYTORCH_PIP_PREFIX} torchtext --extra-index-url ${PYTORCH_PIP_DOWNLOAD_URL}
611fi
Original file line number Diff line number Diff line change 11"""Run smoke tests"""
22
3+ import os
34import re
45
56import torchdata
67import torchtext
78import torchtext .version # noqa: F401
89
910NIGHTLY_ALLOWED_DELTA = 3
11+ channel = os .getenv ("MATRIX_CHANNEL" )
1012
1113
1214def validateTorchdataVersion ():
@@ -19,5 +21,8 @@ def validateTorchdataVersion():
1921 raise RuntimeError (f"torchdata binary { torchdata .__version__ } is more than { NIGHTLY_ALLOWED_DELTA } days old!" )
2022
2123
22- # validateTorchdataVersion()
24+ if channel == "nightly" :
25+ validateTorchdataVersion ()
26+
2327print ("torchtext version is " , torchtext .__version__ )
28+ print ("torchdata version is " , torchdata .__version__ )
You can’t perform that action at this time.
0 commit comments