From e5205afca6ad4f88fe73c505aac9d6c76bd3295a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20H=C3=A9zs=C5=91?= Date: Thu, 7 May 2026 11:28:01 +0200 Subject: [PATCH] Add GitHub Actions PR checks workflow --- .github/workflows/pr-checks.yml | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..62e594b --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -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