From 3443c8826dd0a7d20e63d9c74375907edcd85dbe Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Sat, 18 Jul 2026 17:34:19 +0200 Subject: [PATCH] ci: add Gitea Actions workflow for ruff and unit tests Run ruff check/format and pytest -m "not integration" on push/PR. Co-authored-by: Cursor --- .gitea/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..70d6a9c --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: [main, cleanup/**] + pull_request: + +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install package and dev dependencies + run: pip install -e ".[dev]" + + - name: Ruff + run: | + pip install ruff + ruff check . + ruff format --check . + + - name: Pytest (unit; skip integration) + run: pytest -m "not integration"