From 619efd86a694981aeb1d6e17a9035c474b3c9de7 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sat, 14 Feb 2026 09:31:58 +0100 Subject: [PATCH] Add .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..ef4ef3b --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install deps + run: | + python -m pip install -U pip + pip install -r requirements.txt + pip install -r requirements-dev.txt + + - name: Lint (ruff) + run: ruff check . + + - name: Tests (pytest) + run: pytest -q + + - name: Build scripts bundle (CI artifact) + run: | + mkdir -p dist + zip -r dist/SDSAT-scripts.zip scripts pyproject.toml requirements.txt + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: SDSAT-scripts + path: dist/SDSAT-scripts.zip