Skip to content

Commit

Permalink
shell: bash + test conditional with latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 22, 2024
1 parent 92161eb commit 5fb0c4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5fb0c4f

Please sign in to comment.