Skip to content

Commit de9de7f

Browse files
committed
Bump actions and harden CLI smoke test
Update GitHub Actions usages to actions/checkout@v6 and actions/setup-python@v6 in format and python-package workflows for consistency and newer runner support. Improve the python-package workflow's CLI smoke test to explicitly check for the 'dlclivegui' entry point, run its --help when present, and fail the job if the help command returns non-zero—providing clearer diagnostics instead of silently continuing.
1 parent d79eec4 commit de9de7f

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
pre_commit_checks:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616
ref: ${{ github.head_ref }}
1717

18-
- uses: actions/setup-python@v4
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: '3.10'
2121

.github/workflows/python-package.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
python-version: [ "3.10", "3.11", "3.12" ] # adjust to what you support
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929

3030
- name: Setup Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v6
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

@@ -71,8 +71,15 @@ jobs:
7171
print("Imported:", m.__name__, "version:", getattr(m, "__version__", "n/a"))
7272
PY
7373
74-
# Console entry point best-effort check (adjust name if different)
75-
(command -v dlclivegui && dlclivegui --help) || echo "CLI not available or returned non-zero; continuing."
74+
if ! command -v dlclivegui >/dev/null 2>&1; then
75+
echo "CLI entry point 'dlclivegui' not found in PATH; skipping CLI smoke test."
76+
else
77+
echo "Running 'dlclivegui --help' smoke test..."
78+
if ! dlclivegui --help >/dev/null 2>&1; then
79+
echo "::error::'dlclivegui --help' failed; this indicates a problem with the installed CLI package."
80+
exit 1
81+
fi
82+
fi
7683
7784
publish:
7885
name: Publish to PyPI

0 commit comments

Comments
 (0)