Update main.yml

added pyright to action
This commit is contained in:
timrid 2021-05-23 16:35:11 +02:00 committed by GitHub
parent 2b5967e11d
commit 8a450ec8bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,17 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
# Setup node.js (for pyright)
- name: Setup node.js (for pyright)
- uses: actions/setup-node@v2
with:
node-version: '14'
# Install pyright
- name: Install pyright
run: |
npm install -g pyright
# Install this package
- name: Install this package
run: |
@ -41,8 +52,12 @@ jobs:
run: |
pytest tests/ --showlocals --verbose
# Run mypy
- name: Run mypy
run: |
mypy --strict tests/
# Run pyright
- name: Run pyright
run: |
pyright