diff --git a/.github/requirements.txt b/.github/requirements.txt new file mode 100644 index 00000000000..98a33bfbd4e --- /dev/null +++ b/.github/requirements.txt @@ -0,0 +1,3 @@ +# this file is only used for constraining pyright version in CI +# It is done like this to allow dependabot to automatically bump the version +pyright==1.1.356 diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index bb4999f9efd..4f68b8223f8 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -81,9 +81,14 @@ jobs: run: | pip install .[test] -c requirements.txt if: ${{ !matrix.min-version }} + - name: install pyright + run: | + pip install pyright -c requirements.txt + working-directory: .github + if: ${{ !matrix.min-version }} - uses: jakebailey/pyright-action@20e69225f7f4713c65694eedc9f9c09ea517233b # v2.3.0 with: - version: 1.1.356 + version: PATH if: ${{ !matrix.min-version }} - name: Run Mypy run: mypy -p qcodes