From a9a6ada5ca5b85f107670d3b39be2e28c58586f9 Mon Sep 17 00:00:00 2001
From: polyfloyd <floyd@polyfloyd.net>
Date: Sun, 23 Mar 2025 14:05:06 +0100
Subject: [PATCH] Add forgejo test job

---
 .forgejo/workflows/test.yaml | 37 ++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 .forgejo/workflows/test.yaml

diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml
new file mode 100644
index 0000000..52f2768
--- /dev/null
+++ b/.forgejo/workflows/test.yaml
@@ -0,0 +1,37 @@
+name: Test
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+  workflow_call:
+
+
+env:
+  SLIGRO_USERNAME: ${{ secrets.SLIGRO_USERNAME }}
+  SLIGRO_PASSWORD: ${{ secrets.SLIGRO_PASSWORD }}
+
+jobs:
+
+  pytest:
+    runs-on: docker
+    container:
+      image: alpine:latest
+    steps:
+    - run: apk add nodejs py3-pip
+    - uses: actions/checkout@v4
+    - run: pip install -r requirements.txt --break-system-packages
+    - run: pytest
+
+  # ruff-check:
+  #   runs-on: docker
+  #   container:
+  #     image: debian:bookworm
+  #   steps:
+  #   - uses: actions/checkout@v4
+  #   - run: pip install -r requirements.txt
+  #   - run: apt install ruff
+  #   - run: ruff check