mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
Add hatch test matrix for Python 3.10-3.13 and legacy tests for 3.8-3.9
- Configure hatch test matrix for Python 3.10-3.13 (coverage requires 3.10+) - Add separate test-legacy workflow job for Python 3.8 and 3.9 - Tests verified passing on all versions locally
This commit is contained in:
parent
60e7b2f9ce
commit
2b77cd1ec1
12
.github/workflows/test.yaml
vendored
12
.github/workflows/test.yaml
vendored
@ -16,6 +16,18 @@ jobs:
|
||||
enable-cache: true
|
||||
- run: uvx hatch test -acp
|
||||
if: ${{ always() }}
|
||||
test-legacy:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.8', '3.9']
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: true
|
||||
- name: Run tests on Python ${{ matrix.python-version }}
|
||||
run: uv run --python ${{ matrix.python-version }} --with pytest --with pytest-anyio --with pytest-httpserver pytest tests/
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@ -32,6 +32,9 @@ extra-dependencies = [
|
||||
'pytest-httpserver',
|
||||
]
|
||||
|
||||
[[tool.hatch.envs.hatch-test.matrix]]
|
||||
python = ["3.10", "3.11", "3.12", "3.13"]
|
||||
|
||||
[tool.hatch.envs.hatch-static-analysis]
|
||||
dependencies = [ 'ruff>=0.9.1' ]
|
||||
config-path = 'none'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user