diff --git a/.github/actions/set-up-legacy-python/action.yml b/.github/actions/set-up-legacy-python/action.yml index af693ff9..791c7db8 100644 --- a/.github/actions/set-up-legacy-python/action.yml +++ b/.github/actions/set-up-legacy-python/action.yml @@ -22,6 +22,6 @@ runs: command: pip install -U pip - name: Install dependencies run: | - python -m pip install flake8 pyright pytest setuptools wheel + python -m pip install flake8 pytest setuptools wheel if [ -f requirements.txt ]; then pip install -r requirements.txt; fi shell: bash diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 3cfe0c02..db5076da 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -37,7 +37,7 @@ jobs: flake8 . --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160 - name: Lint with pyright (type checking) run: | - pyright cfbs + pyright cfbs --pythonversion ${{ matrix.python-version }} - name: Test with pytest run: | pytest @@ -64,6 +64,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-node@v5 + with: + node-version: 24 + - name: Install Pyright + run: | + npm install -g pyright - name: Set up legacy Python ${{ matrix.python-version }} uses: ./.github/actions/set-up-legacy-python with: @@ -73,7 +79,7 @@ jobs: python -m flake8 . --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160 - name: Lint with pyright (type checking) run: | - python -m pyright cfbs + pyright cfbs --pythonversion ${{ matrix.python-version }} - name: Test with pytest run: | python -m pytest