Skip to content

Commit 755787c

Browse files
committed
Ensure python-venv is installed
1 parent 63c76d1 commit 755787c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build-lxd.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ jobs:
385385
sudo mv geckodriver /usr/local/bin/
386386
- name: Setup Selenium
387387
run: |
388+
sudo apt-get -y install python3-venv
388389
python3 -m venv ./.venv
389390
./.venv/bin/pip install selenium
390391
- name: download LXD image
@@ -495,7 +496,7 @@ jobs:
495496
- name: Test LXD Image
496497
working-directory: ./tests
497498
run: |
498-
./.venv/bin/python nextcloud_tests.py --no-gui --skip-release-check "nextcloudpi.local" 443 4443 || {
499+
../.venv/bin/python nextcloud_tests.py --no-gui --skip-release-check "nextcloudpi.local" 443 4443 || {
499500
echo "Nextcloud test failed!"
500501
echo "Geckodriver logs:"
501502
tail -n 20 geckodriver.log >&2 || true
@@ -509,7 +510,7 @@ jobs:
509510
exit 1
510511
}
511512
sudo "$LXC" exec ncp -- bash -c 'tail -f /var/log/ncp.log' |& awk '{ print "NCP::" $0 }' &
512-
USE_INCUS="$USE_INCUS" ./.venv/bin/python system_tests.py --non-interactive --skip-update-test || {
513+
USE_INCUS="$USE_INCUS" ../.venv/bin/python system_tests.py --non-interactive --skip-update-test || {
513514
echo "System test failed!"
514515
exit 1
515516
}
@@ -575,7 +576,7 @@ jobs:
575576
working-directory: ./tests
576577
run: |
577578
sudo "$LXC" exec ncp -- bash -c 'tail -f /var/log/ncp.log' |& awk '{ print "NCP::" $0 }' &
578-
./.venv/bin/python nextcloud_tests.py --no-gui "nextcloudpi.local" 443 4443 || {
579+
../.venv/bin/python nextcloud_tests.py --no-gui "nextcloudpi.local" 443 4443 || {
579580
echo "Nextcloud test failed!"
580581
echo "Geckodriver logs:"
581582
tail -n 20 geckodriver.log >&2 || true
@@ -588,7 +589,7 @@ jobs:
588589
sudo "$LXC" exec ncp -- cat "$datadir/nextcloud.log" || true
589590
exit 1
590591
}
591-
USE_INCUS="$USE_INCUS" ./.venv/bin/python system_tests.py --non-interactive || {
592+
USE_INCUS="$USE_INCUS" ../.venv/bin/python system_tests.py --non-interactive || {
592593
echo "System test failed!"
593594
exit 1
594595
}
@@ -640,6 +641,7 @@ jobs:
640641
sudo mv geckodriver /usr/local/bin/
641642
- name: Setup Selenium
642643
run: |
644+
sudo apt-get install -y python3-venv
643645
python3 -m venv ./.venv
644646
./.venv/bin/pip install selenium
645647
- name: download LXD image from artifact store

0 commit comments

Comments
 (0)