Skip to content

Commit 0820957

Browse files
authored
Update python-package.yml
added nodejs and basedpyright
1 parent c152431 commit 0820957

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ jobs:
3131
- name: Install dependencies
3232
run: |
3333
python -m poetry sync --all-extras
34+
- name: Setup Node.js environment
35+
uses: actions/setup-node@v4.3.0
36+
# with:
37+
# # Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.
38+
# cache: # optional
39+
40+
- name: Install basedpyright globally
41+
run: npm install -g basedpyright
42+
env:
43+
NPM_CONFIG_PREFIX: ~/.npm-global
44+
45+
- name: Add npm global bin to PATH
46+
run: echo "$HOME/.npm-global/bin" >> $GITHUB_PATH
47+
3448
# - name: Lint with flake8
3549
# run: |
3650
# # stop the build if there are Python syntax errors or undefined names

0 commit comments

Comments
 (0)