From 0ff01ea482cfd137d651c8362421d58d132eeea4 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 16 Dec 2025 17:04:58 -0300 Subject: [PATCH] Revert "Disable CI - bundled via botserver-bundle" This reverts commit acb4daabf3ac33a6f2cb0452bd3f685c97fd0fd5. --- .forgejo/workflows/botmodels.yaml | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .forgejo/workflows/botmodels.yaml diff --git a/.forgejo/workflows/botmodels.yaml b/.forgejo/workflows/botmodels.yaml new file mode 100644 index 0000000..ed9ca93 --- /dev/null +++ b/.forgejo/workflows/botmodels.yaml @@ -0,0 +1,43 @@ +name: GBCI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: gbo + + steps: + - name: Disable SSL verification (temporary) + run: git config --global http.sslVerify false + + - uses: actions/checkout@v4 + + - name: Set up Python + run: | + python3 -m venv venv + source venv/bin/activate + pip install --upgrade pip + + - name: Install dependencies + run: | + source venv/bin/activate + pip install -r requirements.txt + + - name: Run tests + run: | + source venv/bin/activate + python -m pytest tests/ -v || true + + - name: Deploy application + run: | + lxc exec bot:pragmatismo-system -- systemctl stop botmodels || true + + sudo mkdir -p /opt/gbo/bin/botmodels + sudo cp -r ./* /opt/gbo/bin/botmodels/ + sudo cp -r venv /opt/gbo/bin/botmodels/ + + lxc exec bot:pragmatismo-system -- systemctl start botmodels