refactor(help.py): optimize prefix retrieval by storing it in a varia… #759
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pyright | |
on: [push, pull_request] | |
jobs: | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
- name: Install project | |
run: poetry install --no-interaction | |
- name: Activate virtual environment | |
run: echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH | |
- name: Add Poetry binary to PATH | |
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH | |
- name: Print environment for debug | |
run: | | |
echo "Python location: $(which python)" | |
echo "Poetry location: $(which poetry)" | |
poetry --version | |
which pyright | |
- name: Generate Prisma Client | |
run: poetry run prisma generate | |
- name: Run Pyright | |
uses: jakebailey/pyright-action@v2 | |
with: | |
version: "PATH" | |
annotate: "all" |