mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
'master' branch was updated to 'main' (#9045)
This commit is contained in:
8
.github/workflows/mypy_primer.yml
vendored
8
.github/workflows/mypy_primer.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Run mypy_primer
|
||||
|
||||
on:
|
||||
# Only run on PR, since we diff against master
|
||||
# Only run on PR, since we diff against main
|
||||
pull_request:
|
||||
paths:
|
||||
- 'stdlib/**'
|
||||
@@ -41,9 +41,9 @@ jobs:
|
||||
MYPY_VERSION=$(grep mypy== requirements-tests.txt | cut -d = -f 3)
|
||||
echo "new commit"
|
||||
git rev-list --format=%s --max-count=1 $GITHUB_SHA
|
||||
git checkout -b upstream_master origin/master
|
||||
git checkout -b upstream_main origin/main
|
||||
echo "base commit"
|
||||
git rev-list --format=%s --max-count=1 upstream_master
|
||||
git rev-list --format=%s --max-count=1 upstream_main
|
||||
echo ''
|
||||
cd ..
|
||||
# fail action if exit code isn't zero or one
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
mypy_primer \
|
||||
--new v${MYPY_VERSION} --old v${MYPY_VERSION} \
|
||||
--custom-typeshed-repo typeshed_to_test \
|
||||
--new-typeshed $GITHUB_SHA --old-typeshed upstream_master \
|
||||
--new-typeshed $GITHUB_SHA --old-typeshed upstream_main \
|
||||
--num-shards 4 --shard-index ${{ matrix.shard-index }} \
|
||||
--debug \
|
||||
--output concise \
|
||||
|
||||
Reference in New Issue
Block a user