mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
No op to unblock the testing Pull Request resolved: https://github.com/pytorch/pytorch/pull/141377 Approved by: https://github.com/atalman, https://github.com/huydhn
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: BC Lint
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
branches-ignore:
|
|
- nightly
|
|
push:
|
|
tags:
|
|
# TODO: Remove me later
|
|
- ciflow/inductor-cu126/*
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
bc_linter:
|
|
if: github.repository_owner == 'pytorch'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run BC Lint Action
|
|
uses: pytorch/test-infra/.github/actions/bc-lint@main
|
|
with:
|
|
repo: ${{ github.event.pull_request.head.repo.full_name }}
|
|
base_sha: ${{ github.event.pull_request.base.sha }}
|
|
head_sha: ${{ github.event.pull_request.head.sha }}
|
|
suppression: ${{ contains(github.event.pull_request.labels.*.name, 'suppress-api-compatibility-check') || contains(github.event.pull_request.labels.*.name, 'suppress-bc-linter') }}
|
|
docs_link: 'https://github.com/pytorch/test-infra/wiki/BC-Linter'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
|
|
cancel-in-progress: true
|