Skip to content

Commit

Permalink
add yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryzh168 committed Jan 10, 2025
1 parent 5024ea9 commit 048497d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/run_tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run tutorials

on:
push:
tags:
- ciflow/tutorials/*
jobs:
benchmark:
runs-on: linux.aws.a100
strategy:
matrix:
torch-spec:
- '--pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu124'
steps:
- uses: actions/checkout@v4

- name: Setup miniconda
uses: pytorch/test-infra/.github/actions/setup-miniconda@main
with:
python-version: "3.9"

- name: Run benchmark
shell: bash
run: |
set -eux
${CONDA_RUN} python -m pip install --upgrade pip
${CONDA_RUN} pip install ${{ matrix.torch-spec }}
${CONDA_RUN} pip install -r dev-requirements.txt
${CONDA_RUN} pip install .
cd tutorials
${CONDA_RUN} sh run_all.sh

0 comments on commit 048497d

Please sign in to comment.