From 317e0306e404e1f347e967a7b124bb239776f2cf Mon Sep 17 00:00:00 2001 From: Optio Agent Date: Tue, 27 Oct 2026 20:08:32 +0000 Subject: [PATCH] ci: add reusable workflow for python tests Add .github/workflows/ci.yml that runs python3 test_sortinfolder.py on push and pull_request to main. Uses a minimal ubuntu runner with setup-python, grants read-all permissions, and installs the runtime deps (Pillow, exifread, piexif) required by sortinfolder.py. No Dependabot config is added, so Dependabot version updates stay disabled. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..60ae328 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: read-all + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - 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