-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Run pylance tests in CI #5051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run pylance tests in CI #5051
Conversation
|
||
|
||
_WELL_KNOWN_FILE = Path("tests", "pyright_test.py") | ||
_PYRIGHT_COMMAND = ["npx", "-p", "[email protected]", "pyright"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be unpinned, if mypy is getting run at master (based on the requirements file, anyway)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see #5048 says this is probably just a starter PR, ignore me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'd prefer a pinned version, so our CI doesn't start failing with no action. mypy is currently run from master because of transitional state around the recent directory reorganization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinning mypy was discussed in #4332. I am still in favor of it (and we should also pin pytest while we are at it). As Jelle pointed out, using master has the disadvantage that build can fail for reasons unrelated to a PR.
@@ -85,6 +85,14 @@ jobs: | |||
- uses: actions/setup-python@v2 | |||
- run: ./tests/mypy_test_suite.py | |||
|
|||
pyright: | |||
name: Run the pyright test suite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: Run the pyright test suite | |
name: Run pyright against the stubs |
No description provided.