-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (49 loc) · 1.49 KB
/
_test_linux_cuda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test Wheel (CPU Linux)
on:
workflow_call:
inputs:
os:
required: false
type: string
default: "4-core-ubuntu-gpu-t4"
python-version:
required: true
type: string
artifact:
required: true
type: string
jobs:
test:
name: "test ffmpeg ${{ matrix.ffmpeg-version }}"
strategy:
fail-fast: false
matrix:
ffmpeg-version: ["5", "6", "7" ]
runs-on: ${{ inputs.os }}
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/download-artifact@v4
with:
name: "${{ inputs.artifact }}"
path: ~/package
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ inputs.python-version }}
conda-remove-defaults: "true"
- name: Unit test
run: |
pip install $(find "${HOME}/package" -name '*.whl' -depth -maxdepth 1)
conda install -q -c conda-forge "ffmpeg==${{ matrix.ffmpeg-version }}"
# For some reason, the FFmpeg dynamic libraries are not found.
export "LD_LIBRARY_PATH=${CONDA_PREFIX}/lib"
# TODO: clean up the logic for versions
pip install nvidia-cuda-runtime-cu12 torch --index-url https://download.pytorch.org/whl/cu126
pip install pytest
pytest -v \
tests/spdl_unittest/cuda/ \
tests/spdl_unittest/io/