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 1
1
2
2
if [[ ${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
4
9
else
5
10
pip install ${PYTORCH_PIP_PREFIX} torchtext --extra-index-url ${PYTORCH_PIP_DOWNLOAD_URL}
6
11
fi
Original file line number Diff line number Diff line change 1
1
"""Run smoke tests"""
2
2
3
+ import os
3
4
import re
4
5
5
6
import torchdata
6
7
import torchtext
7
8
import torchtext .version # noqa: F401
8
9
9
10
NIGHTLY_ALLOWED_DELTA = 3
11
+ channel = os .getenv ("MATRIX_CHANNEL" )
10
12
11
13
12
14
def validateTorchdataVersion ():
@@ -19,5 +21,8 @@ def validateTorchdataVersion():
19
21
raise RuntimeError (f"torchdata binary { torchdata .__version__ } is more than { NIGHTLY_ALLOWED_DELTA } days old!" )
20
22
21
23
22
- validateTorchdataVersion ()
24
+ if channel == "nightly" :
25
+ validateTorchdataVersion ()
26
+
23
27
print ("torchtext version is " , torchtext .__version__ )
28
+ print ("torchdata version is " , torchdata .__version__ )
You can’t perform that action at this time.
0 commit comments