Skip to content

create CLI for using PyDetectGPT #26

create CLI for using PyDetectGPT

create CLI for using PyDetectGPT #26

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set Python Version
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Deps
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
pip install -e .
- name: Ruff Linter
run: |
ruff check .
- name: Black Formatter
run: |
black --check .
- name: Pydocstyle
run: |
pydocstyle --convention google .
- name: Run Tests
run: |
pytest --cov=pydetectgpt --cov-fail-under=90 --cov-report=term tests/