feat: scalable semantic discovery with fuzzy search and domains (v0.2.0) #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI and Publish to PyPI | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "*.md" | |
| - "docs/**" | |
| - "LICENSE" | |
| - ".gitignore" | |
| pull_request: | |
| paths-ignore: | |
| - "*.md" | |
| - "docs/**" | |
| - "LICENSE" | |
| - ".gitignore" | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| inputs: | |
| run_publish: | |
| description: 'Set to true to run the publish job' | |
| required: false | |
| default: 'false' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "pyproject.toml" | |
| - run: uv python install 3.13 | |
| - run: uv sync --all-extras --dev | |
| - run: uv run ruff check src/ tests/ | |
| - run: uv run ruff format --check src/ tests/ | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "pyproject.toml" | |
| - run: uv python install ${{ matrix.python-version }} | |
| - run: uv sync --all-extras --dev | |
| - run: uv run pytest --cov=agentic_data_contracts --cov-report=term-missing | |
| publish: | |
| needs: [lint, test] | |
| if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.run_publish == 'true') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - run: uv python install 3.13 | |
| - run: uv build --no-sources | |
| - uses: pypa/gh-action-pypi-publish@release/v1 |