From de94c2f827cfce41335370e9e94873027fa9b9fe Mon Sep 17 00:00:00 2001 From: Mantu Ionut Gabriel Date: Wed, 20 May 2026 11:14:10 +0300 Subject: [PATCH 1/3] Add Python CI checks workflow --- .github/workflows/python-checks.yaml | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/python-checks.yaml diff --git a/.github/workflows/python-checks.yaml b/.github/workflows/python-checks.yaml new file mode 100644 index 00000000..cdbab4e1 --- /dev/null +++ b/.github/workflows/python-checks.yaml @@ -0,0 +1,90 @@ +name: Python Checks + +on: + pull_request: + +jobs: + python-checks: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + + if [ -f requirements.txt ]; then + pip install -r requirements.txt + fi + + pip install pylint ruff black bandit pytype pandas + + - name: Run Pylint + id: pylint + continue-on-error: true + run: | + python_files=$(find . -name "*.py" -not -path "./.venv/*") + python -m pylint $python_files + + - name: Run Ruff + id: ruff + continue-on-error: true + run: | + python -m ruff check . + + - name: Run Black + id: black + continue-on-error: true + run: | + python -m black --check --diff --color . + + - name: Run Bandit + id: bandit + continue-on-error: true + run: | + python -m bandit -r . -x ./.venv + + - name: Run Pytype + id: pytype + continue-on-error: true + run: | + python_files=$(find . -name "*.py" -not -path "./.venv/*") + python -m pytype $python_files + + - name: Fail if any check failed + run: | + failed=0 + + if [ "${{ steps.pylint.outcome }}" != "success" ]; then + echo "Pylint failed" + failed=1 + fi + + if [ "${{ steps.ruff.outcome }}" != "success" ]; then + echo "Ruff failed" + failed=1 + fi + + if [ "${{ steps.black.outcome }}" != "success" ]; then + echo "Black failed" + failed=1 + fi + + if [ "${{ steps.bandit.outcome }}" != "success" ]; then + echo "Bandit failed" + failed=1 + fi + + if [ "${{ steps.pytype.outcome }}" != "success" ]; then + echo "Pytype failed" + failed=1 + fi + + exit $failed From 9c65daaf640ef74bfeac94248d024d2be021cb55 Mon Sep 17 00:00:00 2001 From: ionutmantu8 <151817648+ionutmantu8@users.noreply.github.com> Date: Wed, 20 May 2026 11:27:24 +0300 Subject: [PATCH 2/3] Update python-checks.yaml --- .github/workflows/python-checks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-checks.yaml b/.github/workflows/python-checks.yaml index cdbab4e1..30be9559 100644 --- a/.github/workflows/python-checks.yaml +++ b/.github/workflows/python-checks.yaml @@ -2,6 +2,7 @@ name: Python Checks on: pull_request: + push: jobs: python-checks: From 102d835f043da176d86410eec0037404ec7f94ae Mon Sep 17 00:00:00 2001 From: Mantu Ionut Gabriel Date: Wed, 20 May 2026 11:28:25 +0300 Subject: [PATCH 3/3] try for test --- idk.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 idk.txt diff --git a/idk.txt b/idk.txt new file mode 100644 index 00000000..e69de29b