Skip to content

fix: correct OpenCode API endpoints and rewrite bot handler #1

fix: correct OpenCode API endpoints and rewrite bot handler

fix: correct OpenCode API endpoints and rewrite bot handler #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint & 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 dependencies
run: pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check src/ tests/
- name: Format check
run: ruff format --check src/ tests/
- name: Type check with mypy
run: mypy src/
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v --cov=opencode_telegram_bot