Release/V0.2.3 #99
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 Check | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Needed for git diff | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
version: latest | |
enable-cache: true | |
- name: Run SDK linting | |
run: | | |
cd sdk | |
make lint | |
continue-on-error: false | |
# - name: Run Backend linting | |
# run: | | |
# cd apps/backend | |
# make lint | |
# continue-on-error: false | |
- name: Lint Summary | |
run: | | |
echo "## Lint Check Results ✅" >> $GITHUB_STEP_SUMMARY | |
echo "" >> $GITHUB_STEP_SUMMARY | |
echo "- **Scope**: SDK and Backend Python files" >> $GITHUB_STEP_SUMMARY | |
echo "- **Branch**: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY | |
echo "- **Status**: All checks passed successfully!" >> $GITHUB_STEP_SUMMARY | |
echo "" >> $GITHUB_STEP_SUMMARY | |
echo "### What was checked:" >> $GITHUB_STEP_SUMMARY | |
echo "- **SDK**: Code formatting and linting with ruff" >> $GITHUB_STEP_SUMMARY | |
echo "- **Backend**: Code formatting and linting with ruff" >> $GITHUB_STEP_SUMMARY |