Skip to content

Define all extras as conflicting and should be used separately #840

Define all extras as conflicting and should be used separately

Define all extras as conflicting and should be used separately #840

name: CLI CUDA Pytorch Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
env:
UV_SYSTEM_PYTHON: 1
UV_TORCH_BACKEND: auto
jobs:
run_cli_cuda_pytorch_single_gpu_tests:
if: ${{
(github.event_name == 'push') ||
(github.event_name == 'workflow_dispatch') ||
contains( github.event.pull_request.labels.*.name, 'cli') ||
contains( github.event.pull_request.labels.*.name, 'cuda') ||
contains( github.event.pull_request.labels.*.name, 'pytorch') ||
contains( github.event.pull_request.labels.*.name, 'single_gpu') ||
contains( github.event.pull_request.labels.*.name, 'cli_cuda_pytorch_single_gpu')
}}
runs-on:
group: aws-g5-4xlarge-plus
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Run tests
run: |
make test-cli-cuda-pytorch-single
- name: Run examples
run: |
make test-cli-cuda-pytorch-single-examples
run_cli_cuda_pytorch_multi_gpu_tests:
if: ${{
(github.event_name == 'push') ||
(github.event_name == 'workflow_dispatch') ||
contains( github.event.pull_request.labels.*.name, 'cli') ||
contains( github.event.pull_request.labels.*.name, 'cuda') ||
contains( github.event.pull_request.labels.*.name, 'pytorch') ||
contains( github.event.pull_request.labels.*.name, 'multi_gpu') ||
contains( github.event.pull_request.labels.*.name, 'cli_cuda_pytorch_multi_gpu')
}}
runs-on:
group: aws-g5-12xlarge-plus
# need the devel image for deepspeed compilation
container:
image: nvidia/cuda:12.8.1-devel-ubuntu22.04
options: --ipc host --gpus all
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Run tests
run: |
make test-cli-cuda-pytorch-multi
- name: Run examples
run: |
make test-cli-cuda-pytorch-multi-examples