Skip to content

Commit 9c93ae2

Browse files
committed
chore: move type checking to a single workflow
This makes it better fit than the test workflow.
1 parent 174de11 commit 9c93ae2

File tree

2 files changed

+29
-36
lines changed

2 files changed

+29
-36
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,41 +10,6 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
types:
14-
runs-on: ubuntu-24.04
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
python-version:
19-
- '3.10'
20-
- '3.14'
21-
env:
22-
PYTHON_VERSION: ${{ matrix.python-version }}
23-
PYTHONUNBUFFERED: 1
24-
25-
steps:
26-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
27-
with:
28-
persist-credentials: false
29-
30-
- name: Set up Python ${{ matrix.python-version }}
31-
id: setup_python
32-
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
33-
with:
34-
python-version: ${{ matrix.python-version }}
35-
36-
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
37-
with:
38-
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
39-
40-
- name: Install System dependencies
41-
run: |
42-
sudo apt-get update
43-
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev
44-
45-
- name: Type check with tox
46-
run: uvx tox -e "py${PYTHON_VERSION/\./}-pyright"
47-
4813
test:
4914
runs-on: ubuntu-24.04
5015
strategy:

.github/workflows/ty.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
contents: read
77

88
jobs:
9-
types:
9+
ty:
1010
runs-on: ubuntu-24.04
1111

1212
steps:
@@ -31,3 +31,31 @@ jobs:
3131
3232
- name: Type check ty
3333
run: uv run --all-extras ty check --output-format=github
34+
35+
pyright:
36+
runs-on: ubuntu-24.04
37+
env:
38+
PYTHONUNBUFFERED: 1
39+
40+
steps:
41+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
42+
with:
43+
persist-credentials: false
44+
45+
- name: Set up Python
46+
id: setup_python
47+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
48+
with:
49+
python-version: 3.14
50+
51+
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
52+
with:
53+
cache-suffix: ${{ steps.setup_python.outputs.python-version }}
54+
55+
- name: Install System dependencies
56+
run: |
57+
sudo apt-get update
58+
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev
59+
60+
- name: Type check with pyright
61+
run: uv run --all-extras pyright

0 commit comments

Comments
 (0)