Skip to content

Feature/create llm class #116

Feature/create llm class

Feature/create llm class #116

Workflow file for this run

name: Test Backend
on:
pull_request:
jobs:
testing:
name: Testing Backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-md pytest-emoji
# some tests require an .env file to run.
# file should contain all the required properties.
- name: Create environment file
run: |
echo "Create environment file"
cat <<EOF > .env
ANSWER_AGENT_LLM=mistral
INTENT_AGENT_llm=mistral
VALIDATOR_AGENT_LLM=mistral
DATASTORE_AGENT_LLM=mistral
MATHS_AGENT_LLM=mistral
ROUTER_LLM=mistral
MODEL=my-model
MISTRAL_KEY=123456
NEO4J_URI=bolt://localhost:1234
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=my-password
EOF
cat .env
- name: Run tests
uses: pavelzw/pytest-action@v2
with:
emoji: true
verbose: true
job-summary: true
report-title: 'Backend Test Report'