Skip to content

Add relationship metadata API for creating table relationships #247

Add relationship metadata API for creating table relationships

Add relationship metadata API for creating table relationships #247

name: Python package
permissions:
contents: read
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
# Simplified to single Python version (per project requirements)
# Can expand to matrix testing later: strategy.matrix.python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 black build
python -m pip install -e .[dev]
- name: Check format with black
run: |
black src tests --check
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings, matching Agents-for-python approach
flake8 . --count --exit-zero --show-source --statistics
- name: Build package
run: |
python -m build
- name: Install wheel
run: |
python -m pip install dist/*.whl
- name: Test with pytest
run: |
pytest