refactor: extract field registry and LLM provider classes #5
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: publish-to-test-pypi | |
| on: | |
| workflow_dispatch: ~ | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - ".github/workflows/publish-to-test-pypi.yaml" | |
| jobs: | |
| build-n-push: | |
| name: upload release to Test PyPI | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: test-pypi | |
| url: https://test.pypi.org/project/smartscan/ | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install the project | |
| run: uv sync --locked --group dev | |
| - name: Run tests | |
| run: uv run pytest -v tests/ | |
| - name: Build a binary wheel and a source tarball | |
| run: |- | |
| git tag -f "$(git describe --tags --always | cut -d- -f1,2)" | |
| uv build -v | |
| - name: Publish package distributions to Test PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| verbose: true | |
| print-hash: true | |
| skip-existing: true | |
| repository-url: https://test.pypi.org/legacy/ |