Skip to content

fix: claude code的工具调用结束后也会发送系统通知的bug。 #16

fix: claude code的工具调用结束后也会发送系统通知的bug。

fix: claude code的工具调用结束后也会发送系统通知的bug。 #16

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python -m pytest tests/ -v --cov=src --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install black isort flake8 mypy
- name: Check code formatting with Black
run: |
black --check src/ tests/
- name: Check import sorting with isort
run: |
isort --check-only src/ tests/
- name: Lint with flake8
run: |
flake8 src/ tests/
- name: Type check with mypy
run: |
mypy src/