Skip to content

Commit 94b28a6

Browse files
committed
ci(tests) Verify runtime deps
1 parent d9391c3 commit 94b28a6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ jobs:
2727
- name: Set up Python ${{ matrix.python-version }}
2828
run: uv python install ${{ matrix.python-version }}
2929

30+
- name: Test runtime dependencies
31+
# libvcs.pytest_plugin is intentionally excluded: it is a pytest plugin
32+
# and imports pytest at module load. It is only meant to be used in test
33+
# environments where pytest is already a dependency.
34+
run: |
35+
uv run --no-dev -p python${{ matrix.python-version }} -- python -c '
36+
from libvcs import _internal, cmd, data, sync, url, exc, logger, __version__
37+
from libvcs._internal import dataclasses, module_loading, query_list, run, shortcuts, subprocess, types
38+
from libvcs.cmd import git as git_cmd, hg as hg_cmd, svn as svn_cmd
39+
from libvcs.sync import git as git_sync, hg as hg_sync, svn as svn_sync
40+
from libvcs.url import git as git_url, hg as hg_url, svn as svn_url
41+
print("libvcs version:", __version__)
42+
'
43+
3044
- name: Install dependencies
3145
run: uv sync --all-extras --dev
3246

0 commit comments

Comments
 (0)