Skip to content

Commit 1d29387

Browse files
committed
Test Pyright for CI
1 parent a1abeba commit 1d29387

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

.github/workflows/test-quick.yaml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
os:
2222
- ubuntu
2323
python:
24-
- "3.9"
25-
- "3.14"
24+
- '3.9'
25+
- '3.14'
2626
backend:
2727
- base
2828

@@ -37,8 +37,9 @@ jobs:
3737
- name: Set up Python ${{ matrix.python }}
3838
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
3939
with:
40-
python-version: ${{ matrix.python }}
4140
allow-prereleases: true
41+
cache: 'pip'
42+
python-version: ${{ matrix.python }}
4243

4344
- name: Install tox
4445
run: python -m pip install tox
@@ -69,7 +70,8 @@ jobs:
6970
- name: Set up Python ${{ matrix.python }}
7071
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
7172
with:
72-
python-version: "3.13"
73+
cache: 'pip'
74+
python-version: '3.13'
7375

7476
- name: Install tox
7577
run: python -m pip install tox
@@ -79,3 +81,35 @@ jobs:
7981

8082
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
8183
if: always()
84+
85+
pyright:
86+
name: Pyright
87+
runs-on: ubuntu-latest
88+
steps:
89+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 from 2026-01-09.
90+
91+
- uses: ironsh/iron-proxy-action@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
92+
with:
93+
egress-rules: .github/egress-build-rules.yaml
94+
warn: 'true'
95+
96+
- name: Set up Python ${{ matrix.python }}
97+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 from 2026-01-21.
98+
with:
99+
cache: 'pip'
100+
python-version: '3.14'
101+
102+
- run: |
103+
python -m venv .venv
104+
source .venv/bin/activate
105+
pip install .
106+
107+
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
108+
109+
- uses: jakebailey/pyright-action@8ec14b5cfe41f26e5f41686a31eb6012758217ef # v3.0.2 from 2026-02-15.
110+
with:
111+
extra-args: '--strict'
112+
version: latest
113+
114+
- uses: ironsh/iron-proxy-action/summary@67ae2cdb5cc549c5cb94e76235953f4a9fcb183c # v0.1.3 from 2026-04-07.
115+
if: always()

0 commit comments

Comments
 (0)