[WIP] interleave prefill steps with a decode step #2669
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 Code | |
on: | |
# Don't use pull_request.paths filter since this workflow is required for | |
# all pull requests on main irrespective of file type or location | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.py" | |
- pyproject.toml | |
- .github/workflows/matchers/ruff.json | |
- .github/workflows/lint_code.yml | |
jobs: | |
lint-code: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: uv sync --frozen --only-group lint | |
- name: Analysing the code with ruff | |
run: | | |
echo "::add-matcher::.github/workflows/matchers/ruff.json" | |
ruff check --output-format github . | |
- name: Run isort | |
# `if: always()` ensures all checks run even if previous checks fail | |
if: always() | |
run: isort . --check --diff | |
- name: run yapf | |
if: always() | |
run: yapf --diff --recursive . | |
- name: Spelling check with codespell | |
if: always() | |
run: codespell --toml pyproject.toml | |