lkeep/.gitea/workflows/lint.yaml
proDream 78a7907976
Some checks failed
Lint project / lint (push) Failing after 6s
feat: обновлены версии зависимостей и линтеров
- Обновлена версия `poetry` до 2.0.0 в файлах `.gitea/workflows/lint.yaml` и `.github/workflows/lint.yaml`.
- Удалены неиспользуемые переменные окружения: `RUNNER_TOOL_CACHE`, `AGENT_TOOLSDIRECTORY`.
2025-01-10 02:46:45 +04:00

53 lines
1.3 KiB
YAML

name: Lint project
on:
push:
jobs:
lint:
env:
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
- name: Cache pre-commit hooks
id: cache-pre-commit
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-cache
restore-keys: |
${{ runner.os }}-pre-commit-cache
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==2.0.0
poetry install
poetry run pre-commit install
- name: Lint pre-commit
run: poetry run pre-commit run --all-files --hook-stage manual
- name: Run Telegram Notify Action
uses: proDreams/actions-telegram-notifier@main
if: always()
with:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}
status: ${{ job.status }}
message: "Gitea Lkeep Lint"
notify_fields: "actor,repository,workflow"