From 6135e7d717b4b90b9e1dff239214a77da3c290a3 Mon Sep 17 00:00:00 2001 From: Jonathan Haas <15969068+haasonsaas@users.noreply.github.com> Date: Mon, 18 May 2026 15:26:25 -0700 Subject: [PATCH] Add Python CI guardrails --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23458d6..e743237 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,3 +79,28 @@ jobs: - name: Package (dry run) run: npm pack --dry-run + + python: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.12'] + + steps: + - uses: actions/checkout@v4 + + - name: Use Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: python/pyproject.toml + + - name: Install Python package with extras + run: python -m pip install -e "python[otel,validation]" + + - name: Test Python package + run: PYTHONPATH=python python -m unittest discover -s python/tests + + - name: Python package metadata smoke + run: python -m pip install -e python --dry-run