vxa8502's picture
Local make ci now matches GitHub CI
4cdd0ab
raw
history blame contribute delete
964 Bytes
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install ruff
- run: ruff check sage/ scripts/ tests/
- run: ruff format --check sage/ scripts/ tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -e ".[dev,api,anthropic,openai]"
- run: pip install mypy
- run: mypy sage/ --ignore-missing-imports
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -e ".[dev,api,anthropic,openai,pipeline]"
- run: python -m pytest tests/ -v