From e71e84dc808432bbb28c5f96401ca679ee4b00be Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 17:29:56 +0000 Subject: [PATCH] fix: resolve CI linting issues --- .gitea/workflows/ci.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2b5937f..61b2c12 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,15 +1,14 @@ -name: CI +name: CI/CD on: push: - branches: [main, master] + branches: [main] pull_request: - branches: [main, master] + branches: [main] jobs: test: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 @@ -23,11 +22,14 @@ jobs: python -m pip install --upgrade pip pip install -e ".[dev]" - - name: Run tests - run: | - PYTHONPATH=src python -m pytest tests/ -v --tb=short + - name: Run linter + run: ruff check src/ tests/ - - name: Run linting - run: | - pip install ruff - ruff check . + - name: Run type checker + run: mypy src/ --ignore-missing-imports + + - name: Run tests + run: pytest tests/ -v --tb=short + + - name: Run coverage + run: pytest tests/ --cov=src --cov-report=term-missing