Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

CI: set noninteractive env and harden install step

Juan Denis926c2f3afdbf
diff --git a/.github/workflows/test-system-utils.yml b/.github/workflows/test-system-utils.yml
index fe6bb77a..31ba1e6d 100644
--- a/.github/workflows/test-system-utils.yml
+++ b/.github/workflows/test-system-utils.yml
@@ -64,17 +64,22 @@ jobs:
container:
image: ${{ matrix.image }}
+ env:
+ DEBIAN_FRONTEND: noninteractive
+
steps:
- uses: actions/checkout@v4
- name: Install Python & pytest
+ shell: bash
run: |
- if command -v apt-get &>/dev/null; then
- apt-get update -qq && apt-get install -y -qq python3 python3-pip >/dev/null 2>&1
- elif command -v dnf &>/dev/null; then
- dnf install -y -q python3 python3-pip >/dev/null 2>&1
- elif command -v yum &>/dev/null; then
- yum install -y -q python3 python3-pip >/dev/null 2>&1
+ if command -v apt-get >/dev/null 2>&1; then
+ apt-get update -q
+ apt-get install -y -q python3 python3-pip
+ elif command -v dnf >/dev/null 2>&1; then
+ dnf install -y -q python3 python3-pip
+ elif command -v yum >/dev/null 2>&1; then
+ yum install -y -q python3 python3-pip
fi
pip3 install --break-system-packages pytest 2>/dev/null || pip3 install pytest