@@ -73,12 +73,22 @@ jobs:
7373 with :
7474 python-version : ${{ matrix.python-version }}
7575 - name : Update pip
76- run : python3 -m pip install --upgrade pip
76+ run : |
77+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
78+ export Python3_ROOT_DIR=${CONDA_ENV}
79+
80+ python3 -m pip install --upgrade pip
7781 - name : Install PyTorch
7882 run : |
83+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
84+ export Python3_ROOT_DIR=${CONDA_ENV}
85+
7986 python3 -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
8087 - name : Install torchcodec from the wheel
8188 run : |
89+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
90+ export Python3_ROOT_DIR=${CONDA_ENV}
91+
8292 wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`
8393 echo Installing $wheel_path
8494 python3 -m pip install $wheel_path -vvv
@@ -92,13 +102,18 @@ jobs:
92102 # want to checkout the repo before installing the wheel to avoid any
93103 # side-effect. It's OK.
94104 source packaging/helpers.sh
95- assert_ffmpeg_not_installed
105+
106+ # below was failing, but when I just try to call "ffmpeg -version" that also fails?
107+ #assert_ffmpeg_not_installed
96108
97109 conda install "ffmpeg=${{ matrix.ffmpeg-version-for-tests }}" -c conda-forge
98110 ffmpeg -version
99111
100112 - name : Install test dependencies
101113 run : |
114+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
115+ export Python3_ROOT_DIR=${CONDA_ENV}
116+
102117 python3 -m pip install --pre torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
103118 # Ideally we would find a way to get those dependencies from pyproject.toml
104119 python3 -m pip install numpy pytest pillow
@@ -119,7 +134,13 @@ jobs:
119134 ls
120135 - name : Smoke test
121136 run : |
137+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
138+ export Python3_ROOT_DIR=${CONDA_ENV}
139+
122140 python3 test/decoders/manual_smoke_test.py
123141 - name : Run Python tests
124142 run : |
143+ export PATH=${CONDA_ENV}/bin:${CONDA_ENV}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
144+ export Python3_ROOT_DIR=${CONDA_ENV}
145+
125146 pytest test
0 commit comments