Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: PR Checks

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

env:
PYTHON_VERSION: "3.14"

jobs:
check-linting:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip

- name: Install Ruff
run: |
python -m pip install --upgrade pip
pip install ruff

- name: Ruff
run: ruff check main.py core utils

check-types:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: pip

- name: Install Black
run: |
python -m pip install --upgrade pip
pip install black

- name: Black
run: black --check main.py core utils
Loading