Skip to content

Commit

Permalink
Run unit tests against PyTorch nightlies as part of our nightly CI (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ebsmothers authored Sep 12, 2024
1 parent 6b43a1c commit f729ce1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 55 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/gpu_test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: GPU tests

on:
schedule:
# Runs at midnight every day
- cron: '0 0 * * *'
push:
branches: [ main ]
pull_request:
Expand All @@ -24,7 +27,10 @@ jobs:
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
torch-version: ["stable"]
torch-version: ["stable", "nightly"]
# Do not run against nightlies on PR
exclude:
- torch-version: ${{ github.event_name == 'pull_request' && 'nightly' }}
steps:
- name: Check out repo
uses: actions/checkout@v3
Expand All @@ -39,7 +45,7 @@ jobs:
run: python -m pip install --upgrade pip
- name: Install torch nightly
if: ${{ matrix.torch-version == 'nightly' }}
run: python -m pip install --pre torch torchvision torchao --index-url https://download.pytorch.org/whl/nightly/cu118
run: python -m pip install --pre torch torchvision torchao --index-url https://download.pytorch.org/whl/nightly/cu121
- name: Install torch stable
if: ${{ matrix.torch-version == 'stable' }}
run: python -m pip install torch torchvision torchao
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/recipe_test_nightly.yaml

This file was deleted.

0 comments on commit f729ce1

Please sign in to comment.