5555 python-version : ['3.10']
5656 ffmpeg-version-for-tests : ['4.4.2', '5.1.2', '6.1.1', '7.0.1']
5757 steps :
58- - uses : actions/download-artifact@v4
59- with :
60- name : meta-pytorch_torchcodec__${{ matrix.python-version }}_cpu_x86_64
61- path : pytorch/torchcodec/dist/
58+ - name : Check out repo
59+ uses : actions/checkout@v3
60+
6261 - name : Setup conda env
6362 uses : conda-incubator/setup-miniconda@v2
6463 with :
@@ -67,28 +66,25 @@ jobs:
6766 activate-environment : test
6867 python-version : ${{ matrix.python-version }}
6968
70- - name : Install ffmpeg
71- run : |
72- conda install "ffmpeg=${{ matrix.ffmpeg-version-for-tests }}" -c conda-forge
73- ffmpeg -version
74-
7569 - name : Update pip
7670 run : python -m pip install --upgrade pip
7771
78- - name : Install generation dependencies
79- run : |
80- # Note that we're installing stable - this is for running a script where we're a normal PyTorch
81- # user, not for building TorhCodec.
82- python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
83- python -m pip install numpy pillow pytest
72+ - name : Install PyTorch
73+ run : bash packaging/install_pytorch.sh cpu "torch"
74+
75+ - uses : actions/download-artifact@v4
76+ with :
77+ name : meta-pytorch_torchcodec__${{ matrix.python-version }}_cpu_x86_64
78+ path : dist/
8479
8580 - name : Install torchcodec from the wheel
86- run : |
87- wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`
88- echo Installing $wheel_path
89- python -m pip install $wheel_path -vvv
90- - name : Check out repo
91- uses : actions/checkout@v3
81+ run : bash packaging/install_torchcodec_wheel.sh
82+
83+ - name : Install ffmpeg, post build
84+ run : bash packaging/install_ffmpeg.sh ${{ matrix.ffmpeg-version-for-tests }}
85+
86+ - name : Install test dependencies
87+ run : bash packaging/install_test_dependencies.sh
9288
9389 - name : Run generation reference resources
9490 run : |
0 commit comments