From b28d7cca9ed635b4090094925ffb919de54f713e Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 6 Jun 2026 18:41:43 +0800 Subject: [PATCH] fix: lint gracefully skip when src/ not exists --- .gitea/workflows/ci.yml | 2 +- .gitea/workflows/deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4ff0551..17ed2bc 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Lint with ruff run: | - .venv/bin/ruff check src/ + test -d src && .venv/bin/ruff check src/ || echo "No src/ directory, skipping lint" # ── Job 2: Test ────────────────────────────────────── test: diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 603dc7f..827510b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -30,7 +30,7 @@ jobs: - name: Lint run: | - .venv/bin/ruff check src/ + test -d src && .venv/bin/ruff check src/ || echo "No src/ directory, skipping lint" - name: Unit & Integration Tests run: |