@@ -26,48 +26,48 @@ jobs:
2626 runner : linux.g5.4xlarge.nvidia.gpu
2727 gpu-arch-type : cuda
2828 gpu-arch-version : " 12.6"
29- steps :
30- - name : Setup env vars
31- run : |
32- cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g')
33- echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV
34- python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g')
35- echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV
36- - name : Setup miniconda using test-infra
37- uses : pytorch/test-infra/.github/actions/setup-miniconda@main
38- with :
39- python-version : ${{ matrix.python-version }}
40- # We install conda packages at the start because otherwise conda may have conflicts with dependencies.
41- default-packages : " conda-forge::ffmpeg=${{ matrix.ffmpeg-version }} cmake ninja"
42- - name : Check env
43- run : |
44- ${CONDA_RUN} env
45- ${CONDA_RUN} conda info
46- ${CONDA_RUN} nvidia-smi
47- ${CONDA_RUN} conda list
48- - name : Assert ffmpeg exists
49- run : |
50- ${CONDA_RUN} ffmpeg -buildconf
51- - name : Update pip
52- run : ${CONDA_RUN} python -m pip install --upgrade pip
53- - name : Install PyTorch
54- run : |
55- ${CONDA_RUN} python -m pip install --pre torch torchcodec --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
56- ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
57- - name : Check out repo
58- uses : actions/checkout@v3
59- - name : Install torchaudio
60- run : |
61- ${CONDA_RUN} python -m pip install . -v --no-build-isolation
62- - name : Install doc dependencies
63- run : |
64- cd docs
65- ${CONDA_RUN} python -m pip install -r requirements.txt -r requirements-tutorials.txt
66- - name : Build docs
67- run : |
68- cd docs
69- ${CONDA_RUN} make html
70- - uses : actions/upload-artifact@v4
71- with :
72- name : Built-Docs
73- path : docs/build/html/
29+ steps :
30+ - name : Setup env vars
31+ run : |
32+ cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g')
33+ echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV
34+ python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g')
35+ echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV
36+ - name : Setup miniconda using test-infra
37+ uses : pytorch/test-infra/.github/actions/setup-miniconda@main
38+ with :
39+ python-version : ${{ matrix.python-version }}
40+ # We install conda packages at the start because otherwise conda may have conflicts with dependencies.
41+ default-packages : " conda-forge::ffmpeg=${{ matrix.ffmpeg-version }} cmake ninja"
42+ - name : Check env
43+ run : |
44+ ${CONDA_RUN} env
45+ ${CONDA_RUN} conda info
46+ ${CONDA_RUN} nvidia-smi
47+ ${CONDA_RUN} conda list
48+ - name : Assert ffmpeg exists
49+ run : |
50+ ${CONDA_RUN} ffmpeg -buildconf
51+ - name : Update pip
52+ run : ${CONDA_RUN} python -m pip install --upgrade pip
53+ - name : Install PyTorch
54+ run : |
55+ ${CONDA_RUN} python -m pip install --pre torch torchcodec --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
56+ ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
57+ - name : Check out repo
58+ uses : actions/checkout@v3
59+ - name : Install torchaudio
60+ run : |
61+ ${CONDA_RUN} python -m pip install . -v --no-build-isolation
62+ - name : Install doc dependencies
63+ run : |
64+ cd docs
65+ ${CONDA_RUN} python -m pip install -r requirements.txt -r requirements-tutorials.txt
66+ - name : Build docs
67+ run : |
68+ cd docs
69+ ${CONDA_RUN} make html
70+ - uses : actions/upload-artifact@v4
71+ with :
72+ name : Built-Docs
73+ path : docs/build/html/
0 commit comments