Skip to content

Commit 3cbb916

Browse files
author
Matthias Koeppe
committed
.github/workflows/build.yml: Adjust pyright to venv not set in pyrightconfig.json
1 parent 01a17a0 commit 3cbb916

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ jobs:
103103
MAKE: make -j2 --output-sync=recurse
104104
SAGE_NUM_THREADS: 2
105105

106+
- name: Add venv to PATH for pyright
107+
if: always() && steps.worktree.outcome == 'success'
108+
# https://github.com/jakebailey/pyright-action#use-with-a-virtualenv
109+
run: echo "$PWD/venv/bin" >> $GITHUB_PATH
110+
working-directory: ./worktree-image
111+
106112
- name: Static code check with pyright
107113
if: always() && steps.worktree.outcome == 'success'
108114
uses: jakebailey/pyright-action@v1

pyrightconfig.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{
22
"include": [
3-
"src"
3+
"src/sage"
44
],
5-
"executionEnvironments": [
6-
{
7-
"root": "src"
8-
}
9-
],
5+
"stubPath": "src/typings",
106
"pythonVersion": "3.9",
117
"exclude": ["venv"],
12-
"venvPath": "./venv/",
138

149
"reportGeneralTypeIssues": "warning",
1510
"reportUnboundVariable": "warning",

0 commit comments

Comments
 (0)