From 119f3bdcc488e2b7cf7c4fc60217640be1fcc509 Mon Sep 17 00:00:00 2001 From: Optio Agent Date: Thu, 29 Oct 2026 13:05:29 +0000 Subject: [PATCH] ci: add reusable GitHub Actions workflow for python tests Adds .github/workflows/ci.yml running python3 test_sortinfolder.py on push and pull_request to main using a minimal ubuntu-latest runner with actions/setup-python. Workflow permissions are set to read-all, and runs triggered by Dependabot are skipped since they receive read-only permissions and no secrets. Co-Authored-By: Claude Code --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3ad1b47 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +"on": + push: + branches: [main] + pull_request: + branches: [main] + +permissions: read-all + +jobs: + test: + name: Python tests + runs-on: ubuntu-latest + # Skip Dependabot-triggered runs: they get read-only permissions and + # no secrets, so the tests add no signal for dependency bumps. + if: github.actor != 'dependabot[bot]' + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install dependencies + run: pip install Pillow exifread piexif + + - name: Run tests + run: python3 test_sortinfolder.py \ No newline at end of file