Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
# pytest is needed so mypy can find its stubs when type-checking tests/.
# numpy is an optional runtime dependency (#22 zero-copy path) but
# mypy still needs its types when type-checking src/pyrewire/session.py.
run: pip install black isort flake8 mypy pytest numpy
# numpy is pinned <2.5 here: numpy 2.5.0 ships .pyi stubs that use the
# PEP 695 `type` statement, which mypy rejects under our `python_version
# = "3.11"` target (requires-python is >=3.11) with "Type statement is
# only supported in Python 3.12 and greater". This only affects the
# stub-checking env; runtime numpy stays unpinned (>=1.24). Drop the cap
# once mypy parses PEP 695 stubs independently of the target version.
run: pip install black isort flake8 mypy pytest "numpy<2.5"
- name: black --check
run: black --check .
- name: isort --check
Expand Down Expand Up @@ -102,7 +108,7 @@ jobs:
# matrix slot on the same OS.
- name: cache wirelog install
id: cache-wirelog
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: ${{ env.WIRELOG_PREFIX }}
key: wirelog-${{ matrix.os }}-${{ steps.wirelog-sha.outputs.sha }}-${{ hashFiles('scripts/build_wirelog.sh', 'scripts/build_wirelog.ps1') }}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ci_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_ci_uses_node24_actions():
assert "ilammy/msvc-dev-cmd" not in text
assert "actions/checkout@v7" in text
assert "actions/setup-python@v6" in text
assert "actions/cache@v5" in text
assert "actions/cache@v6" in text


def test_all_workflows_use_node24_core_actions():
Expand Down