mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Only run mypy primer workflows on stdlib (#5407)
Co-authored-by: hauntsaninja <>
This commit is contained in:
4
.github/workflows/mypy_primer.yml
vendored
4
.github/workflows/mypy_primer.yml
vendored
@@ -3,6 +3,10 @@ name: Run mypy_primer
|
||||
on:
|
||||
# Only run on PR, since we diff against master
|
||||
pull_request:
|
||||
# Since modular typeshed, mypy primer doesn't check third party stubs. Till that is changed,
|
||||
# only run it on stdlib changes to avoid false confidence and wasted CI minutes.
|
||||
paths:
|
||||
- stdlib
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
4
.github/workflows/mypy_primer_comment.yml
vendored
4
.github/workflows/mypy_primer_comment.yml
vendored
@@ -7,6 +7,10 @@ on:
|
||||
# each other, so the approach here is to poll for workflow runs, find the mypy_primer run for our
|
||||
# commit, wait till it's completed, and download and post the diff.
|
||||
pull_request_target:
|
||||
# Since modular typeshed, mypy primer doesn't check third party stubs. Till that is changed,
|
||||
# only run it on stdlib changes to avoid false confidence and wasted CI minutes.
|
||||
paths:
|
||||
- stdlib
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
Reference in New Issue
Block a user