Merge pull request #12 from Sahandfer/feature/patientZero #6
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: Schema Validation Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'patienthub/clients/**' | |
| - 'patienthub/schemas/**' | |
| - 'data/characters/**' | |
| - 'patienthub/tests/schemas.py' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'patienthub/clients/**' | |
| - 'patienthub/schemas/**' | |
| - 'data/characters/**' | |
| - 'patienthub/tests/schemas.py' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| uv venv --python 3.12 --clear | |
| uv pip install -e . --no-deps | |
| uv pip install pydantic omegaconf hydra-core litellm instructor jinja2 python-dotenv rich pytest | |
| - name: Run schema validation tests | |
| run: uv run pytest patienthub/tests/schemas.py -v |