Commit 39a5dc6
authored
ci(tests) Verify runtime deps, fix runtime dep issue (#965)
## Changes
- Add runtime dependency check in CI using `uv run --no-dev`
- Run check before installing dev dependencies
- Print package version and basic functionality test results
- Document improvement in CHANGES
- Fix runtime issue in _internal/types.py
## Verification
https://github.com/tmux-python/tmuxp/actions/runs/13411308953/job/37461974473#step:5:24
uv run --no-dev -p python3.13 -- python -c '
from tmuxp import _internal, cli, workspace, exc, log, plugin, shell, types, util, __version__
from tmuxp._internal import config_reader, types
from tmuxp.workspace import builder, constants, finders, freezer, importers, loader, validation
from libtmux import __version__ as __libtmux_version__
print("tmuxp version:", __version__)
print("libtmux version:", __libtmux_version__)
'
shell: /usr/bin/bash -e {0}
env:
UV_CACHE_DIR: /home/runner/work/_temp/setup-uv-cache
Using CPython 3.13.2
Creating virtual environment at: .venv
Building tmuxp @ file:///home/runner/work/tmuxp/tmuxp
Built tmuxp @ file:///home/runner/work/tmuxp/tmuxp
Installed 4 packages in 1ms
Traceback (most recent call last):
File "<string>", line 3, in <module>
from tmuxp._internal import config_reader, types
File "/home/runner/work/tmuxp/tmuxp/src/tmuxp/_internal/types.py", line 15, in <module>
from typing_extensions import NotRequired, TypedDict
ModuleNotFoundError: No module named 'typing_extensions'
## See also
- tmux-python/libtmux#574
## Summary by Sourcery
CI:
- Adds a CI job to verify that runtime dependencies are installed correctly and that the application can import its modules and dependencies.3 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
0 commit comments