Add a stricter config pass for pyright (#5612)

This commit is contained in:
Jake Bailey
2021-06-10 11:10:12 -07:00
committed by GitHub
parent cb76f32826
commit c4dc935b3f
5 changed files with 112 additions and 5 deletions

View File

@@ -76,11 +76,20 @@ jobs:
python-platform: ["Linux", "Windows", "Darwin"]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
fail-fast: false
env:
PYRIGHT_VERSION: 1.1.148 # Must match pyright_test.py.
steps:
- uses: actions/checkout@v2
- uses: jakebailey/pyright-action@v1
with:
version: 1.1.144 # Must match pyright_test.py.
version: ${{ env.PYRIGHT_VERSION }}
python-platform: ${{ matrix.python-platform }}
python-version: ${{ matrix.python-version }}
no-comments: ${{ matrix.python-version != '3.9' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.
project: ./pyrightconfig.stricter.json
- uses: jakebailey/pyright-action@v1
with:
version: ${{ env.PYRIGHT_VERSION }}
python-platform: ${{ matrix.python-platform }}
python-version: ${{ matrix.python-version }}
no-comments: ${{ matrix.python-version != '3.9' || matrix.python-platform != 'Linux' }} # Having each job create the same comment is too noisy.