这是indexloc提供的服务,不要输入任何密码
Skip to content

ci: Add testing framework setup #2

ci: Add testing framework setup

ci: Add testing framework setup #2

Workflow file for this run

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