Skip to content

Fix CI: resolve_path compat, mypy clean, test skip markers #8

Fix CI: resolve_path compat, mypy clean, test skip markers

Fix CI: resolve_path compat, mypy clean, test skip markers #8

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e ".[all]"
pip install pytest pytest-cov pandas
- name: Run tests with coverage
run: |
pytest tests/ -v --cov=archon --cov-report=term-missing --cov-report=xml --cov-fail-under=75
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Upload coverage to Codecov (optional)
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
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 ruff
run: pip install ruff
- name: Lint
run: ruff check archon/ tests/
- name: Format check
run: ruff format --check archon/ tests/
type-check:
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 deps + mypy
run: |
pip install -e ".[all]"
pip install mypy
- name: Type check
run: mypy archon/ --ignore-missing-imports