krz/nba-scores

A CLI/TUI app for NBA scores.

clone: git clone https://gitbay.org/krz/nba-scores.git

main: .github/workflows/pylint.yml · raw

 1name: Ruff
 2
 3on: [push]
 4
 5jobs:
 6  build:
 7    runs-on: ubuntu-latest
 8    strategy:
 9      matrix:
10        python-version: ["3.x"]
11    steps:
12    - uses: actions/checkout@v4
13    - name: Set up Python ${{ matrix.python-version }}
14      uses: actions/setup-python@v5
15      with:
16        python-version: ${{ matrix.python-version }}
17        ref: ${{ github.event.pull_request.head.ref }}
18    - name: Install dependencies
19      run: |
20        python -m pip install --upgrade pip
21        pip install -r requirements.txt
22    # Pinned. Unpinned, this installs whatever ruff shipped this week, and a
23    # release that adds a rule turns the build red with no change to the code —
24    # which is what happened between May and August 2026.
25    - name: Install Ruff
26      uses: astral-sh/ruff-action@v3.2.2
27      with:
28        version: "0.16.4"
29    - name: Ruff Actions
30      run: |
31        ruff check --fix
32        ruff format
33    - name: Add and Commit
34      uses: EndBug/add-and-commit@v9
35      env:
36        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37      with:
38        default_author: github_actions
39        pathspec_error_handling: ignore