-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (34 loc) · 1.05 KB
/
pyright.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"