From 504690e06a1f6731ccc33ede0e4c98e883ec50a0 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 31 Oct 2026 17:17:31 +0000 Subject: [PATCH] ci: add GitHub Actions workflow (lint + tests/build) Adds CI so every push and PR is validated automatically. Previously these repos had tests (or a build) but no pipeline running them. Co-authored-by: openhands --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1842c75 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Lint & tests + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.11', '3.12', '3.13'] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install + run: pip install -e ".[dev]" + - name: Lint + run: | + ruff format --check . + ruff check . + - name: Tests + run: python -m pytest