From e06a03ef66e202dac15ce2cb5a678c1a3eef5c80 Mon Sep 17 00:00:00 2001 From: Lucas Vivo Date: Sun, 15 Nov 2026 21:46:56 +0100 Subject: [PATCH] feat(CICD): add serverlibrary tests --- .gitea/workflows/ci.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 9ba4e44..2fc200c 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -5,7 +5,29 @@ on: pull_request: jobs: - test: + test-serverlibrary: + runs-on: ubuntu-latest + container: + image: nikolaik/python-nodejs:python3.12-nodejs20 + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Create virtual environment and install dependencies + working-directory: serverlibrary + run: | + python -m venv .venv + . .venv/bin/activate + python -m pip install --upgrade pip + python -m pip install . + - name: Run tests + working-directory: serverlibrary + run: | + . .venv/bin/activate + python run_tests.py + + test-wallpaper-changer: runs-on: ubuntu-latest container: image: nikolaik/python-nodejs:python3.12-nodejs20