feat: refactor GeneralNB
and GaussianWNB
, improve validation, and enhance scikit-learn compatibility
#5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
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 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install dependencies | |
run: uv sync | |
- name: Run ruff linter | |
run: uv run ruff check --output-format=github . | |
- name: Run black format check | |
run: uv run black --check --diff . | |
- name: Run tests | |
run: uv run pytest -vv |