30 lines
743 B
YAML
30 lines
743 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
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: Lint (ruff)
|
|
run: ruff check openwebui_cli
|
|
- name: Type check (mypy)
|
|
run: mypy openwebui_cli --ignore-missing-imports
|
|
- name: Tests
|
|
run: pytest tests/ --cov=openwebui_cli
|
|
- name: Security audit (pip-audit)
|
|
run: pip-audit
|