Skip to content

Commit f2e4ac7

Browse files
committed
Use extra step for setting up venv
1 parent 7250695 commit f2e4ac7

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/synchronize-launchpad.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,26 @@ jobs:
1616
- uses: actions/setup-python@v5
1717
with:
1818
python-version: '3.10'
19-
- name: Install dependencies
19+
20+
- name: Setup virtualenv
2021
run: |
2122
venv_dir="/tmp/venv"
2223
python -m venv "$venv_dir"
23-
. $venv_dir/bin/activate
24-
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> "$GITHUB_ENV"
24+
echo "VIRTUAL_ENV=$venv_dir" >> "$GITHUB_ENV"
2525
echo "$venv_dir/bin" >> "$GITHUB_PATH"
26+
27+
- name: Install breezy
28+
run: |
29+
which pip && which python
2630
pip install --upgrade pip
31+
pip list
2732
pip install Cython configobj
2833
pip install 'breezy[fastimport,git,launchpad]<3.3' # 3.3+ requires interactive login
29-
fastimport_dir=$venv_dir/lib/python*/site-packages/breezy/plugins/fastimport
34+
fastimport_dir=$VIRTUAL_ENV/lib/python*/site-packages/breezy/plugins/fastimport
3035
# Add missing import and use binary buffer of stdin for Python3 compat
3136
sed -i '1 i from breezy import controldir' $fastimport_dir/branch_updater.py
3237
sed -i 's/helpers.binary_stream(sys.stdin)/sys.stdin.buffer/' $fastimport_dir/cmds.py
3338
34-
3539
- uses: actions/checkout@v4
3640
with:
3741
fetch-depth: 0

0 commit comments

Comments
 (0)