Balatro v1.0 #380
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
| permissions: | |
| contents: read | |
| pull-requests: write | |
| name: Code Quality | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ruff: | |
| name: Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Ruff Check | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| version: latest | |
| - name: Ruff Format | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| version: latest | |
| args: format --check | |
| pyright: | |
| name: Type Check & Markdown Format | |
| runs-on: ubuntu-latest | |
| needs: ruff | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv sync --dev | |
| - name: Check markdown formatting | |
| run: | | |
| source .venv/bin/activate | |
| mdformat --check . | |
| - name: Run pyright | |
| run: | | |
| source .venv/bin/activate | |
| basedpyright | |
| stylua: | |
| name: StyLua | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Lua formatting | |
| uses: JohnnyMorganz/stylua-action@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| version: latest | |
| args: --check src/lua |