Skip to content

Commit 266ed7c

Browse files
authored
CI: Add runtime dependency check (#574)
Add step to verify package can be imported without dev dependencies installed. This helps catch missing runtime dependencies before they reach users. * Add runtime check using `uv run --no-dev` * Run before installing dev dependencies * Print package version and basic info * Document in CHANGES Kudos @ppentchev for inspiration on the command (#572 (comment))
2 parents efdc59c + f66abaf commit 266ed7c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/tests.yml

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
- name: Set up Python ${{ matrix.python-version }}
2424
run: uv python install ${{ matrix.python-version }}
2525

26+
- name: Test runtime dependencies
27+
run: |
28+
uv run --no-dev -p python${{ matrix.python-version }} -- python -c '
29+
from libtmux import common, constants, exc, formats, neo, pane, server, session, window, __version__
30+
server = server.Server()
31+
print("libtmux version:", __version__)
32+
print("libtmux Server:", server)
33+
'
34+
2635
- name: Install dependencies
2736
run: uv sync --all-extras --dev
2837

CHANGES

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ $ pip install --user --upgrade --pre libtmux
1515

1616
- _Future release notes will be placed here_
1717

18+
### Development
19+
20+
- CI: Check for runtime dependencies (#574)
21+
22+
Kudos @ppentchev for inspiration on the command
23+
([comment](https://github.com/tmux-python/libtmux/pull/572#issuecomment-2663642923)).
24+
1825
## libtmux 0.44.2 (2025-02-17)
1926

2027
### Bug fix

0 commit comments

Comments
 (0)