From 8884cce9b5e4327c7f3a55f24d95c9b6eab61b7d Mon Sep 17 00:00:00 2001 From: Rene Arumetsa Date: Sun, 26 Jul 2026 21:45:23 +0300 Subject: [PATCH] Added a runner, ci/cd --- .gitea/workflows/deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9ff3191..79690a9 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,12 +1,27 @@ -name: Deploy +name: Test & Deploy on: push: branches: [master] jobs: + test: + runs-on: linux + steps: + - name: Run test suite + run: | + REPO=$(git -C ~/tipibot remote get-url origin) + rm -rf /tmp/tipibot-ci + git clone --quiet "$REPO" /tmp/tipibot-ci + cd /tmp/tipibot-ci + git checkout --quiet ${{ github.sha }} + python3 -m venv .venv + .venv/bin/pip install -q -r requirements-dev.txt + .venv/bin/python -m pytest tests/ -q + deploy: runs-on: linux + needs: test steps: - name: Deploy run: |