Skip to content

Commit 8cefe62

Browse files
committed
[fix] Fixed test action
1 parent 4d64c1e commit 8cefe62

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ jobs:
6868
GIT_BRANCH="${GIT_BRANCH}" SKIP_PULL=true sudo -E ./deploy/auto-install.sh --upgrade \
6969
|| (cat /opt/openwisp/autoinstall.log && exit 1)
7070
71-
- name: Debugging with tmate
72-
uses: mxschmitt/action-tmate@v3.23
71+
- name: Fix permissions for CI user
72+
if: ${{ !cancelled() && steps.auto_install_upgrade.conclusion == 'success' }}
73+
run: |
74+
sudo chown -R $USER:$USER /opt/openwisp
7375
7476
- name: Test
7577
if: ${{ !cancelled() && steps.auto_install_upgrade.conclusion == 'success' }}
@@ -81,7 +83,7 @@ jobs:
8183
# /opt/openwisp/docker-openwisp. To ensure the test runs correctly
8284
# and environment variables remain intact, it is essential to
8385
# execute the test from this directory.
84-
command: cd /opt/openwisp/docker-openwisp && sudo make develop-pythontests && make stop
86+
command: cd /opt/openwisp/docker-openwisp && make develop-pythontests && make stop
8587
env:
8688
SELENIUM_HEADLESS: 1
8789

0 commit comments

Comments
 (0)