Skip to content

Commit c6e2a47

Browse files
committed
Add sanity check for 'brz' command
Added sanity check for 'brz' command in workflow.
1 parent 046714d commit c6e2a47

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/synchronize-launchpad.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -V
22+
23+
echo "::group::Installing breezy"
2224
venv_dir="/tmp/venv"
2325
python -m venv "$venv_dir"
2426
. $venv_dir/bin/activate
@@ -32,7 +34,20 @@ jobs:
3234
# Add missing import and use binary buffer of stdin for Python3 compat
3335
sed -i '1 i from breezy import controldir' $fastimport_dir/branch_updater.py
3436
sed -i 's/helpers.binary_stream(sys.stdin)/sys.stdin.buffer/' $fastimport_dir/cmds.py
37+
# Ensure correct Python is used
38+
sed -i '1 i\#!/usr/bin/env python3' $venv_dir/bin/brz
39+
echo "::endgroup::"
3540
41+
# Sanity check
42+
echo "::group::Breezy location"
43+
which brz
44+
echo "::endgroup::"
45+
echo "::group::brz script contents"
46+
file $(which brz)
47+
cat $(which brz)
48+
echo "::endgroup::"
49+
echo "brz version"
50+
brz --version
3651
3752
- uses: actions/checkout@v4
3853
with:

0 commit comments

Comments
 (0)