From 90b0180212b1916852fcbc331f06a4e4efa4aecd Mon Sep 17 00:00:00 2001 From: Daniel Bauer Date: Mon, 30 Jun 2025 12:36:33 +0200 Subject: [PATCH] feat: add ci/cd pipeline for github --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..5acaa2b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + with: + version: "latest" + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + + - name: Install dependencies + run: uv sync --dev + + - name: Run ruff linting + run: uv run ruff check + + - name: Run mypy type checking + run: uv run mypy src/ + + - name: Run tests + run: uv run pytest \ No newline at end of file