From 2773e2a6bae1628973006477df70144060a24a06 Mon Sep 17 00:00:00 2001 From: Optio Agent Date: Thu, 29 Oct 2026 13:07:23 +0000 Subject: [PATCH] ci: add reusable workflow for python tests Adds .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 actions/setup-python. Configures permissions to read-all and adds a .github/dependabot.yml that disables Dependabot version updates. --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/ci.yml | 20 ++++++++++++++++++++ 2 files changed, 32 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..52fc30c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 0 + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 0 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0b3aeee --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +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" + - run: pip install Pillow exifread piexif + - run: python3 test_sortinfolder.py \ No newline at end of file