From b592b768b3f66a32a1495d883911de498e858f59 Mon Sep 17 00:00:00 2001 From: Optio Agent Date: Thu, 29 Oct 2026 13:03:02 +0000 Subject: [PATCH] ci: add reusable GitHub Actions workflow for python tests Add .github/workflows/ci.yml that runs the existing python tests (python3 test_sortinfolder.py) on push and pull_request to main using a minimal ubuntu runner with python setup and read-all permissions. Also add .github/dependabot.yml to disable Dependabot updates. --- .github/dependabot.yml | 2 ++ .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..cedf2ae --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,2 @@ +version: 2 +updates: [] \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..492483a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +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