Skip to content

ci(deps): bump actions/checkout from 4 to 6 #218

ci(deps): bump actions/checkout from 4 to 6

ci(deps): bump actions/checkout from 4 to 6 #218

Workflow file for this run

name: Python Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"] # Using Python 3.13 based on your project structure
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run core tests with coverage
run: pytest tests/ --ignore=tests/simulation -v --cov=src --cov-report=xml --cov-report=html --cov-report=term-missing
timeout-minutes: 10
- name: Run simulation tests with coverage
run: pytest tests/simulation/ -v --cov=src --cov-append --cov-report=xml --cov-report=html --cov-report=term-missing
timeout-minutes: 5
env:
# Optional: Enable LLM assertions if API key is available
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
# Skip LLM tests gracefully if no API key
SKIP_LLM_TESTS: ${{ secrets.GOOGLE_API_KEY == '' }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
coverage.xml
htmlcov/
retention-days: 30