From 8a450ec8bda94bb5630f3412e98c44b56c103d70 Mon Sep 17 00:00:00 2001 From: timrid <6593626+timrid@users.noreply.github.com> Date: Sun, 23 May 2021 16:35:11 +0200 Subject: [PATCH 1/2] Update main.yml added pyright to action --- .github/workflows/main.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8863d4c..0ebc2b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 From 672fe1fd52f621801c7d9b0a27aeeceda53dcbb1 Mon Sep 17 00:00:00 2001 From: timrid <6593626+timrid@users.noreply.github.com> Date: Sun, 23 May 2021 16:36:39 +0200 Subject: [PATCH 2/2] Update main.yml fixed yml error --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ebc2b0..805dcca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: # Setup node.js (for pyright) - name: Setup node.js (for pyright) - - uses: actions/setup-node@v2 + uses: actions/setup-node@v2 with: node-version: '14'