fix invariant check to not require stateful variables #6851
Workflow file for this run
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
name: static | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: static | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{github.token}} | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
token: ${{github.token}} | |
- name: install requirements | |
run: | | |
python -m venv --upgrade-deps .venv | |
source .venv/bin/activate | |
pip install -e '.[all]' | |
- name: analysing code with pyright | |
run: | | |
source .venv/bin/activate | |
python -m pyright $(git ls-files '*.py' '*.pyi') |