From 5fb0c4fbba859beb096cdc9881e3ac52c2c941d7 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 22 Aug 2024 14:18:55 -0400 Subject: [PATCH] shell: bash + test conditional with latest --- .github/workflows/pyright.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pyright.yml b/.github/workflows/pyright.yml index 515b9bb393..f8b80504f5 100644 --- a/.github/workflows/pyright.yml +++ b/.github/workflows/pyright.yml @@ -24,7 +24,7 @@ env: # pin pyright so a new version doesn't suddenly cause the CI to fail, # until types-setuptools is removed from typeshed. # For help with static-typing issues, or pyright update, ping @Avasam - PYRIGHT_VERSION: "1.1.377" + PYRIGHT_VERSION: "latest" # Environment variable to support color support (jaraco/skeleton#66) FORCE_COLOR: 1 @@ -75,12 +75,13 @@ jobs: echo 'To run this test locally with npm pre-installed, run:' echo '> npx -y pyright@${{ env.PYRIGHT_VERSION }} --threads' echo 'You can also instead install "Pyright for Python" which will install npm for you:' - if [$PYRIGHT_VERSION == 'latest']; then + if ['$PYRIGHT_VERSION' == 'latest']; then echo '> pip install -U' else echo '> pip install pyright==${{ env.PYRIGHT_VERSION }}' fi echo 'pyright --threads' + shell: bash - name: Run pyright uses: jakebailey/pyright-action@v2 with: