From 2dbce2439b20b4079b8ed4c872ceed024d9609c1 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 06:04:18 +0000 Subject: [PATCH] fix: resolve CI linting and type checking errors --- .gitea/workflows/ci.yml | 51 +++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fd38746..970dcda 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,30 +2,51 @@ name: CI on: push: - branches: [main] + branches: [ main, master ] pull_request: - branches: [main] + branches: [ main, master ] jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' + + - name: Install dependencies + run: | + pip install ruff mypy + + - name: Run Python linting + run: | + ruff check scaffoldforge tests + ruff format --check scaffoldforge tests + + - name: Run Python type checking + run: | + python -m mypy scaffoldforge tests + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' + - name: Install dependencies run: | pip install -e ".[dev]" - - name: Run unit tests - run: pytest tests/unit/ -v - - name: Run integration tests - run: pytest tests/integration/ -v - - name: Run linter - run: ruff check . - - name: Upload coverage - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage.xml - fail_ci_if_error: false + + - name: Run Python tests + run: | + pytest tests/ -v --tb=short + pytest tests/integration/ -v