Skip to content

feat(llm): add token usage tracking and statistics for LLM providers and resolve the conflicts and modify files in src/llm/providers/archived to be consistent with the current main branch. #84

feat(llm): add token usage tracking and statistics for LLM providers and resolve the conflicts and modify files in src/llm/providers/archived to be consistent with the current main branch.

feat(llm): add token usage tracking and statistics for LLM providers and resolve the conflicts and modify files in src/llm/providers/archived to be consistent with the current main branch. #84

Workflow file for this run

name: lint
on:
pull_request:
types: [opened, synchronize, edited]
push:
branches: [ "main" ]
jobs:
lint:
name: lint pull request
runs-on: ubuntu-latest
steps:
- name: Debug workflow trigger
run: |
echo "Workflow triggered by: ${{ github.event_name }}"
echo "PR number: ${{ github.event.pull_request.number }}"
echo "PR title: ${{ github.event.pull_request.title }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.head_ref }}"
- name: checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync
- name: Check static error
run: |
uv run ruff check --show-fixes --output-format=github
- name: Reformat code style
run: |
echo '## Reformat summary' >> $GITHUB_STEP_SUMMARY
if diff_output="$(uv run ruff format --diff 2>&1)"; then
echo "$diff_output"
echo '✅ Format check passed.' >> "$GITHUB_STEP_SUMMARY"
else
echo "$diff_output"
echo '❌ Format issues detected.' >> "$GITHUB_STEP_SUMMARY"
{
echo '```diff'
echo "$diff_output"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
exit 1
fi