Add mc-arena: Minecraft build benchmark suite #92
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| ruff: | |
| name: Lint and format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| # Only the dev group is needed here, so the heavy runtime deps are skipped. | |
| - name: Install lint tooling | |
| run: uv sync --only-group dev | |
| - name: ruff check | |
| run: uv run --no-sync ruff check --output-format=github . | |
| - name: ruff format | |
| run: uv run --no-sync ruff format --check --diff . |