ci: Add testing framework setup

This commit is contained in:
tssujt
2025-07-10 12:08:28 +08:00
parent 8af1c47e15
commit 0c4aa34f8f
19 changed files with 672 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "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 poetry
poetry install --no-interaction --no-root --with dev
- name: Run tests with pytest
run: |
poetry run pytest tests/ -v --cov=cbz --cov-report=xml --cov-report=term-missing