File tree 3 files changed +25
-4
lines changed
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,20 @@ jobs:
89
89
90
90
- name : Unit test
91
91
run : |
92
+ # Install SPDL
92
93
pip install $(find "${HOME}/package" -name '*.whl' -depth -maxdepth 1)
94
+
95
+ # Install PyTorch and others
96
+ pip install numpy torch --index-url https://download.pytorch.org/whl/cpu
97
+ conda install -q numba pytest
98
+
99
+ # Install FFmpeg
93
100
# Note: Somehow FFmepg 5.1 does not install libiconv so specifying it here
94
101
conda install -q -c conda-forge "ffmpeg==${{ matrix.ffmpeg-version }}" libiconv
95
- conda install -q -c pytorch numpy pytest pytorch numba
96
102
# For some reason, the dynamic libraries are not found.
97
103
export "LD_LIBRARY_PATH=${CONDA_PREFIX}/lib"
104
+
105
+ # Run test
98
106
pytest -v \
99
107
tests/spdl_unittest/io/ \
100
108
tests/spdl_unittest/dataloader/
Original file line number Diff line number Diff line change @@ -114,13 +114,20 @@ jobs:
114
114
115
115
- name : Unit test
116
116
run : |
117
+ # Install SPDL
117
118
pip install $(find "${HOME}/package" -name '*.whl' -depth -maxdepth 1)
119
+
120
+ # Install PyTorch and others
121
+ pip install pytest
122
+ pip install numpy nvidia-cuda-runtime-cu12 torch --index-url https://download.pytorch.org/whl/cu126
123
+
124
+ # Install FFmpeg
118
125
conda install -q -c conda-forge "ffmpeg==${{ matrix.ffmpeg-version }}"
119
126
# For some reason, the FFmpeg dynamic libraries are not found.
120
127
export "LD_LIBRARY_PATH=${CONDA_PREFIX}/lib"
121
128
# TODO: clean up the logic for versions
122
- pip install nvidia-cuda-runtime-cu12 torch --index-url https://download.pytorch.org/whl/cu126
123
- pip install pytest
129
+
130
+ # Run test
124
131
pytest -v \
125
132
tests/spdl_unittest/cuda/ \
126
133
tests/spdl_unittest/io/
Original file line number Diff line number Diff line change 78
78
79
79
- name : Unit test
80
80
run : |
81
+ # Install SPDL
81
82
pip install $(find "${HOME}/package" -name '*.whl' -depth -maxdepth 1)
83
+
84
+ # Install PyTorch and others
85
+ pip install torch numpy numba pytest
86
+
87
+ # Install FFmpeg
82
88
conda install -q -c conda-forge "ffmpeg==${{ matrix.ffmpeg-version }}"
83
- conda install -q -c pytorch numpy pytest pytorch numba
89
+
84
90
pytest -v \
85
91
tests/spdl_unittest/io/ \
86
92
tests/spdl_unittest/dataloader/
You can’t perform that action at this time.
0 commit comments