Add command to reset failed state of urbackupsrv during server restart #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Integration Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install urbackup-server | |
| run: | | |
| echo 'deb http://download.opensuse.org/repositories/home:/uroni/xUbuntu_24.04/ /' | sudo tee /etc/apt/sources.list.d/home:uroni.list | |
| curl -fsSL https://download.opensuse.org/repositories/home:uroni/xUbuntu_24.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_uroni.gpg > /dev/null | |
| sudo apt-get update | |
| sudo apt-get install -y urbackup-server | |
| - name: Verify urbackup-server installation | |
| run: | | |
| dpkg -l | grep urbackup || true | |
| which urbackupsrv || true | |
| sudo systemctl list-unit-files | grep urbackup || true | |
| cat /lib/systemd/system/urbackupsrv.service || true | |
| - name: Start urbackup-server | |
| run: | | |
| sudo systemctl start urbackupsrv || { | |
| echo "=== systemctl status ===" | |
| sudo systemctl status urbackupsrv --no-pager || true | |
| echo "=== journalctl ===" | |
| sudo journalctl -xeu urbackupsrv --no-pager -n 50 || true | |
| exit 1 | |
| } | |
| sudo systemctl status urbackupsrv --no-pager | |
| - name: Install Python dependencies | |
| run: | | |
| pip install pytest | |
| pip install -e . | |
| - name: Run integration tests | |
| run: pytest |