Skip to content

Commit 849dbf7

Browse files
JCHAVEROTCopilotfabnemEPFL
authored
Add workflow for Pyright type check (#300)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: fabnemEPFL <117652591+fabnemEPFL@users.noreply.github.com>
1 parent 768d225 commit 849dbf7

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/pyright.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 📐 Pyright type checks
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
pyright:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Python 3.12
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install uv and create venv
21+
run: |
22+
pipx install uv
23+
uv venv .venv
24+
25+
- name: Install dependencies
26+
run: |
27+
source .venv/bin/activate
28+
uv pip install -e ".[process,index,rag,api,cpu,dev,websearch]"
29+
30+
- name: Run Pyright
31+
continue-on-error: true
32+
run: |
33+
source .venv/bin/activate
34+
pyright

0 commit comments

Comments
 (0)