Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 17 additions & 21 deletions .github/workflows/pytorch-version-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
pytorch-version: [2.7.1, 2.5.1, 2.4.1, 2.3.1, 1.13.1]
exclude:
# Conda fails to install cpuonly version and few cpu distributed tests are
# failing with unrelated errors
- pytorch-version: 1.13.1
python-version: "3.11"
- pytorch-version: 1.13.1
python-version: "3.12"
pytorch-version: [2.7.1, 2.5.1, 2.4.1, 2.3.1, 2.2.2]
# exclude:
# - pytorch-version: 2.2.2
# python-version: "3.12"

steps:
- uses: actions/checkout@v5
Expand Down Expand Up @@ -72,16 +68,16 @@ jobs:
command: bash -l tests/run_cpu_tests.sh "not test_time_profilers"
new_command_on_retry: USE_LAST_FAILED=1 bash -l tests/run_cpu_tests.sh "not test_time_profilers"

create-issue:
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
needs: build
if: always() && needs.build.result == 'failure'
steps:
- uses: actions/checkout@v5
- uses: JasonEtco/create-an-issue@v2
name: Create issue if pytorch version tests failed
with:
filename: .github/failed_schedule_issue_template.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# create-issue:
# runs-on: ubuntu-latest
# # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
# needs: build
# if: always() && needs.build.result == 'failure'
# steps:
# - uses: actions/checkout@v5
# - uses: JasonEtco/create-an-issue@v2
# name: Create issue if pytorch version tests failed
# with:
# filename: .github/failed_schedule_issue_template.md
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading