forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Pyright for all workflows (#18268)
* Run Pyright for all workflows * Rename job * Remove special directory * analyze types only in pythonFiles * Install requirements * Fix indentation * Indentation, again * Try excluding lib form pyright * install debugger requirements, tweak extraPaths * Remove debugpy install * Exclude more files * Add more to pyproject.toml, install test reqs * Fix normalizeSelection * Move from exclude to ignore * Update build workflow
- Loading branch information
1 parent
7e1d4ae
commit 2883012
Showing
4 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,31 @@ jobs: | |
with: | ||
node_version: ${{ env.NODE_VERSION }} | ||
|
||
check-types: | ||
name: Check Python types | ||
if: github.repository == 'microsoft/vscode-python' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Python requirements | ||
run: | | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt --no-user | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/jedilsp --no-cache-dir --implementation py --no-deps --upgrade -r ./pythonFiles/jedilsp_requirements/requirements.txt | ||
python -m pip install --upgrade -r build/test-requirements.txt | ||
- name: Run Pyright | ||
uses: jakebailey/pyright-action@v1 | ||
with: | ||
working-directory: 'pythonFiles' | ||
|
||
### Non-smoke tests | ||
tests: | ||
name: Tests | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,30 @@ jobs: | |
with: | ||
node_version: ${{ env.NODE_VERSION }} | ||
|
||
check-types: | ||
name: Check Python types | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Python requirements | ||
run: | | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade -r requirements.txt --no-user | ||
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/jedilsp --no-cache-dir --implementation py --no-deps --upgrade -r ./pythonFiles/jedilsp_requirements/requirements.txt | ||
python -m pip install --upgrade -r build/test-requirements.txt | ||
- name: Run Pyright | ||
uses: jakebailey/pyright-action@v1 | ||
with: | ||
working-directory: 'pythonFiles' | ||
|
||
### Non-smoke tests | ||
tests: | ||
name: Tests | ||
|
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
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