From 51d2e2d4ce0845868e6ae7dc460721194ccd9a53 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 17:51:26 +0000 Subject: [PATCH] fix: scope CI tests and linting to docgen project directories --- .gitea/workflows/ci.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 80d5b2e..1c2a3ba 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,32 +2,16 @@ name: CI on: push: - branches: [main, master] + branches: [main] pull_request: - branches: [main, master] + branches: [main] 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' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -e ".[dev]" - - name: Run ruff linter - run: ruff check . - test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies @@ -35,4 +19,6 @@ jobs: python -m pip install --upgrade pip pip install -e ".[dev]" - name: Run tests - run: pytest tests/ -v --tb=short + run: pytest tests/integration/ tests/unit/ -v --tb=short + - name: Run linter + run: ruff check src/docgen/