Skip to content

Update .github/workflows/pytorch_gpu_tests.yml #29

Update .github/workflows/pytorch_gpu_tests.yml

Update .github/workflows/pytorch_gpu_tests.yml #29

name: Pytorch Unit Tests (with GPU)
on:
push:
branches:
- 'main'

Check failure on line 6 in .github/workflows/pytorch_gpu_tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pytorch_gpu_tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/profiling/collector/pytorch.py'
workflow_dispatch:
jobs:
unit-tests:
strategy:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# Include all history and tags
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install latest stable toolchain and rustfmt
run: rustup update stable && rustup default stable && rustup component add rustfmt clippy
- name: Install hatch
uses: pypa/hatch@install
with:
version: "1.12.0"
- name: Install PyTorch
run: pip install torch
- name: Run tests
run: hatch run profiling_pytorch:test