mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-04-25 08:42:06 +00:00
- pytest-timeout>=2.1.0 added; timeout=30s per test prevents runaway tests from hanging CI - asyncio_mode=auto in pyproject.toml [tool.pytest.ini_options]; async tests run without per-test markers - fail_under=27 in [tool.coverage.report] as the enforced coverage floor; target 40% tracked in TASK-14 - CI test matrix updated for Python 3.9, 3.11, 3.12
41 lines
745 B
YAML
41 lines
745 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
- dev
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[test]"
|
|
pip install ruff mypy
|
|
|
|
- name: Lint with ruff
|
|
run: ruff check .
|
|
|
|
- name: Type check with mypy
|
|
run: mypy modules/ --ignore-missing-imports
|
|
|
|
- name: Run tests
|
|
run: pytest tests/ -v --tb=short
|