Skip to content

feat: support clip

feat: support clip #34

Workflow file for this run

name: CI
on:
pull_request:
paths-ignore:
- 'README.md'
jobs:
commit-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
lint-flake-8:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .git,__pycache__,docs/source/conf.py,old,build,dist,tests/
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude .git,__pycache__,docs/source/conf.py,old,build,dist,tests/
check-black:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.19
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: check black
run: |
pip install black
black -S --check .
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.19
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests with pytest
run: |
pytest -v -s -x