From 566b263d0a3fb3500dec14a7b9621a0e853a5bba Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Fri, 14 Nov 2025 11:22:58 +0000 Subject: [PATCH] Run Unit tests in GitHub workflows --- .github/workflows/code_checks.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml index 794545ce..0e39de1a 100755 --- a/.github/workflows/code_checks.yml +++ b/.github/workflows/code_checks.yml @@ -39,3 +39,23 @@ jobs: echo "๐Ÿ” Checking Python syntax..." find . -name "*.py" -print0 | xargs -0 -n1 python3 -m py_compile +test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + pip install -r requirements.txt + pip install pytest + + - name: Run unit tests + run: | + echo "๐Ÿงช Running unit tests..." + pytest -m "not (docker or compose or feature_complete)" \ No newline at end of file