a5d08bd64e
The Gitea Actions runner doesn't have access to pip cache storage, causing 'reserveCache failed: connect ETIMEDOUT' errors. Removed cache configuration from both: - .gitea/workflows/lint.yml - .gitea/workflows/update-badges.yml Pip will download dependencies fresh on each run, which is acceptable for CI workflows and avoids the timeout errors. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
35 lines
781 B
YAML
35 lines
781 B
YAML
name: Lint and Type Check
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.py'
|
|
- '.pylintrc'
|
|
- '.gitea/workflows/lint.yml'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dev dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements-dev.txt
|
|
|
|
- name: Run pylint
|
|
run: |
|
|
# Run pylint on all Python files in the repo
|
|
find . -name '*.py' -not -path './.venv/*' -not -path './.git/*' | xargs pylint --fail-under=8.0 || true
|
|
|
|
- name: Run pyright
|
|
run: |
|
|
# Run pyright type checking
|
|
pyright .
|