add socket.__all__ #16975
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run mypy_primer | |
on: | |
# Only run on PR, since we diff against main | |
pull_request: | |
paths: | |
- "stdlib/**" | |
- "stubs/**/*.pyi" | |
- ".github/workflows/mypy_primer.yml" | |
- ".github/workflows/mypy_primer_comment.yml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
mypy_primer: | |
name: Run | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
shard-index: [0, 1, 2, 3] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: typeshed_to_test | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: pip install git+https://github.com/hauntsaninja/mypy_primer.git | |
- name: Run mypy_primer | |
shell: bash | |
run: | | |
cd typeshed_to_test | |
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_main origin/main | |
echo "base commit" | |
git rev-list --format=%s --max-count=1 upstream_main | |
echo '' | |
cd .. | |
# fail action if exit code isn't zero or one | |
( | |
mypy_primer \ | |
--new v${MYPY_VERSION} --old v${MYPY_VERSION} \ | |
--custom-typeshed-repo typeshed_to_test \ | |
--new-typeshed $GITHUB_SHA --old-typeshed upstream_main \ | |
--num-shards 4 --shard-index ${{ matrix.shard-index }} \ | |
--debug \ | |
--output concise \ | |
| tee diff_${{ matrix.shard-index }}.txt | |
) || [ $? -eq 1 ] | |
- name: Upload mypy_primer diff | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mypy_primer_diff_${{ matrix.shard-index }} | |
path: diff_${{ matrix.shard-index }}.txt | |
- if: ${{ matrix.shard-index == 0 }} | |
name: Save PR number | |
run: | | |
echo ${{ github.event.pull_request.number }} | tee pr_number.txt | |
- if: ${{ matrix.shard-index == 0 }} | |
name: Upload PR number | |
uses: actions/upload-artifact@v4 | |
with: | |
name: mypy_primer_diff_pr_number | |
path: pr_number.txt |