Skip to content

Commit 7f2a8eb

Browse files
committed
fix: venv creation should be in pr workflow
1 parent a54e16b commit 7f2a8eb

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

template/.gitea/workflows/create_update_pr.yml.jinja

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,21 @@ jobs:
1818
with:
1919
python-version: '3.12'
2020

21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Create virtualenv
25+
run: |
26+
python -m virtualenv .venv
27+
2128
- name: Install tools
2229
run: |
30+
source .venv/bin/activate
2331
pip install copier PySide6 bec_lib
2432

25-
- name: Checkout
26-
uses: actions/checkout@v4
27-
2833
- name: Perform update
2934
run: |
35+
source .venv/bin/activate
3036
git config --global user.email "bec_ci_staging@psi.ch"
3137
git config --global user.name "BEC automated CI"
3238

@@ -35,8 +41,9 @@ jobs:
3541
git checkout -b $branch
3642

3743
echo "Running copier update..."
38-
copier update --trust --defaults --conflict inline 2>&1 | tee ../copier.log
39-
output="$(cat ../copier.log)"
44+
copier update --trust --defaults --conflict inline 2>&1 | tee copier.log
45+
status=${PIPESTATUS[0]}
46+
output="$(cat copier.log)"
4047
echo $output
4148
msg="$(printf '%s\n' "$output" | head -n 1)"
4249

0 commit comments

Comments
 (0)