feat(agent): fix the "task_id" TypeError when testing xbench-ds #97
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |