Skip to content

cancel outdated job triggered by PR when PR is updated #158

cancel outdated job triggered by PR when PR is updated

cancel outdated job triggered by PR when PR is updated #158

name: Python 3.11, Pytorch 2.4
on:
workflow_dispatch: # Allow manual triggers
schedule:
- cron: 0 0 * * *
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
run-tests:
uses: ./.github/workflows/run_pytorch_tests.yml
with:
python-version: "3.11"
torch-version: "2.4.*"