Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
push:
branches: [main]
pull_request:
workflow_dispatch: # Allow manual runs

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Run all matrix combinations even if one fails
matrix:
python-version: ['3.10', '3.11', '3.12']

Expand All @@ -19,6 +21,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
Expand All @@ -27,7 +30,7 @@ jobs:

- name: Run tests with coverage
run: |
pytest tests/ -v --cov=src/document_analysis_mcp --cov-report=term --cov-report=xml
pytest tests/ -v --cov=src/document_analysis_mcp --cov-report=term --cov-report=xml --cov-fail-under=80

- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
Expand All @@ -38,13 +41,16 @@ jobs:

lint:
runs-on: ubuntu-latest
# Lint is non-blocking - failures are reported but don't fail the build
continue-on-error: true
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Install ruff
run: pip install ruff
Expand Down