Skip to content

fix: SafetyPipeline defaults to LLMBackendConfig.from_env() instead o… #5

fix: SafetyPipeline defaults to LLMBackendConfig.from_env() instead o…

fix: SafetyPipeline defaults to LLMBackendConfig.from_env() instead o… #5

Workflow file for this run

name: Tests
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
jobs:
test:
name: Python 3.12
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv pip install --system -r requirements.txt
- name: Download spaCy model
run: python -m spacy download en_core_web_sm
- name: Run tests
run: pytest test_safety_pipeline.py -v --tb=short
- name: Generate coverage report
run: |
uv pip install --system pytest-cov
pytest test_safety_pipeline.py --cov=llm_safety_pipeline --cov=api_server \
--cov-report=xml --tb=short -q
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.xml
fail_ci_if_error: false