From 7ad5e3f560718066c3f4a5463c6a43064b25d404 Mon Sep 17 00:00:00 2001 From: Vlad Emelianov Date: Wed, 10 Jan 2024 03:31:05 +0300 Subject: [PATCH] Use pyright-actions --- .github/workflows/on_push.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml index 6da006f..8680e08 100644 --- a/.github/workflows/on_push.yml +++ b/.github/workflows/on_push.yml @@ -28,18 +28,10 @@ jobs: with: python-version: "${{ matrix.version }}" cache: "poetry" - - name: Set up Node.js - id: node - uses: actions/setup-node@v4 - with: - node-version: "20" - name: Install dependencies run: | poetry install -n poetry run pip install flake8 pytest - - name: Install Node.js dependencies - run: | - npm install -g pyright - name: Code style if: ${{ matrix.check-formatting }} run: | @@ -48,9 +40,9 @@ jobs: - name: Lint run: | poetry run flake8 awscliv2 + - run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH - name: Typing - run: | - poetry run npx pyright + uses: jakebailey/pyright-action@v1 - name: Test run: | poetry run pytest