mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 04:25:50 +08:00
Update GitHub Actions (#15581)
This commit is contained in:
@@ -61,7 +61,7 @@ jobs:
|
||||
version-file: "requirements-tests.txt"
|
||||
- run: uv pip install -r requirements-tests.txt --system
|
||||
- name: Run pyright on typeshed
|
||||
uses: jakebailey/pyright-action@v2
|
||||
uses: jakebailey/pyright-action@v3
|
||||
with:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
run: |
|
||||
echo ${{ github.event.pull_request.number }} | tee pr_number.txt
|
||||
- name: Upload mypy_primer diff + PR number
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v7
|
||||
if: ${{ matrix.shard-index == 0 }}
|
||||
with:
|
||||
name: mypy_primer_diffs-${{ matrix.shard-index }}
|
||||
@@ -70,7 +70,7 @@ jobs:
|
||||
diff_${{ matrix.shard-index }}.txt
|
||||
pr_number.txt
|
||||
- name: Upload mypy_primer diff
|
||||
uses: actions/upload-artifact@v6
|
||||
uses: actions/upload-artifact@v7
|
||||
if: ${{ matrix.shard-index != 0 }}
|
||||
with:
|
||||
name: mypy_primer_diffs-${{ matrix.shard-index }}
|
||||
@@ -84,7 +84,7 @@ jobs:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Merge artifacts
|
||||
uses: actions/upload-artifact/merge@v6
|
||||
uses: actions/upload-artifact/merge@v7
|
||||
with:
|
||||
name: mypy_primer_diffs
|
||||
pattern: mypy_primer_diffs-*
|
||||
|
||||
@@ -118,14 +118,14 @@ jobs:
|
||||
- name: List 3rd-party stub dependencies installed
|
||||
run: uv pip freeze
|
||||
- name: Run pyright with basic settings on all the stubs
|
||||
uses: jakebailey/pyright-action@v2
|
||||
uses: jakebailey/pyright-action@v3
|
||||
with:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
python-version: ${{ matrix.python-version }}
|
||||
annotate: ${{ matrix.python-version == '3.13' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
- name: Run pyright with stricter settings on some of the stubs
|
||||
uses: jakebailey/pyright-action@v2
|
||||
uses: jakebailey/pyright-action@v3
|
||||
with:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
@@ -133,7 +133,7 @@ jobs:
|
||||
annotate: ${{ matrix.python-version == '3.13' && matrix.python-platform == 'Linux' }} # Having each job create the same comment is too noisy.
|
||||
project: ./pyrightconfig.stricter.json
|
||||
- name: Run pyright on the test cases
|
||||
uses: jakebailey/pyright-action@v2
|
||||
uses: jakebailey/pyright-action@v3
|
||||
with:
|
||||
version: PATH
|
||||
python-platform: ${{ matrix.python-platform }}
|
||||
|
||||
Reference in New Issue
Block a user