Skip to content

add XML tests

add XML tests #13

Workflow file for this run

name: Library Tests
on:
push:
paths:
- "mdmodels/**"
- "tests/**"
- "pyproject.toml"
pull_request:
paths:
- "mdmodels/**"
- "tests/**"
- "pyproject.toml"
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Pull Ollama model
run: |
curl http://localhost:11434/api/pull -d '{
"model": "gemma2:2b"
}'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install poetry
poetry install --with dev,sql,graph
- name: Wait for Neo4j service to be ready
run: |
until curl -s http://localhost:7474; do
echo "Waiting for Neo4j service to be ready..."
sleep 5
done
- name: Test with pytest
env:
NEO4J_USER: neo4j
NEO4J_PASSWORD: your_password
NEO4J_HOST: localhost
NEO4J_PORT: 7687
OLLAMA_HOST: "http://localhost:11434/v1"
OLLAMA_MODEL: "gemma2:2b"
run: |
python3 -m poetry run pytest
services:
neo4j:
image: neo4j:latest
ports:
- 7474:7474
- 7687:7687
env:
NEO4J_AUTH: neo4j/your_password
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434