Skip to content

Merge pull request #27 from Frostbite1536/claude/audit-deleted-files-… #17

Merge pull request #27 from Frostbite1536/claude/audit-deleted-files-…

Merge pull request #27 from Frostbite1536/claude/audit-deleted-files-… #17

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: |
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
pip install -e ".[api,dev]"
else
pip install -e ".[api,mcp,dev]"
fi
- name: Run tests
run: |
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
pytest --cov=prediction_analyzer --cov-report=xml -q --ignore=tests/mcp
else
pytest --cov=prediction_analyzer --cov=prediction_mcp --cov-report=xml -q
fi
- name: Upload coverage
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Check formatting (black)
run: black --check prediction_analyzer prediction_mcp tests
- name: Lint (flake8)
run: flake8 prediction_analyzer prediction_mcp