Skip to content

AK1 claude-code: add a reusable CI workflow for python tests - #45

Closed
ulbi wants to merge 1 commit into
mainfrom
optio/task-f3ad5a0b-e773-4be4-85ef-0af3a857abb1
Closed

ulbi wants to merge 1 commit into
mainfrom
optio/task-f3ad5a0b-e773-4be4-85ef-0af3a857abb1

Conversation

@ulbi

@ulbi ulbi commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Implements task f3ad5a0b-e773-4be4-85ef-0af3a857abb1

What changed

  • .github/workflows/ci.yml (new): a reusable CI workflow that runs the existing Python tests (python3 test_sortinfolder.py) on push and pull_request to main. It uses a minimal Ubuntu runner (ubuntu-latest) with Python set up via actions/setup-python, installs the runtime dependencies the test needs (Pillow, exifread, piexif — sortinfolder.py imports them at module load), and sets workflow-level permissions: read-all.
  • .github/dependabot.yml (new): explicitly disables Dependabot version updates. The updates list is intentionally empty (updates: []), which the Dependabot config schema accepts and dependabot-core parses without error, so no package ecosystems are monitored and no scan/manifest errors are reported (the repo has no manifest files, so a pip-ecosystem entry would otherwise fail with "no manifest found").

No existing files were touched.

How to test

  1. Locally:

    python3 test_sortinfolder.py          # exits 0

    I also invoked the test function directly and confirmed sortinfolder.py --help prints the usage: sortimages, options:, and Examples: strings it asserts on. The workflow file was linted with actionlint (no findings) and both YAML files parse cleanly.

  2. In CI: after merge to main (or via this PR's pull_request run), the test job checks out the repo, sets up Python 3, installs Pillow exifread piexif, and runs python3 test_sortinfolder.py.

Note: test_sortinfolder.py is pytest-style — running it as a module (per the task spec) executes the file (exit 0) without invoking the test function; running pytest/the function directly also passes. I kept the exact command the task specified.

🤖 Generated with Claude Code

Add .github/workflows/ci.yml running the existing python tests
(python3 test_sortinfolder.py) on push and pull_request to main on a
minimal ubuntu runner, with read-all permissions. Add a dependabot
config with an empty updates list to keep Dependabot version updates
disabled.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@ulbi ulbi closed this Oct 31, 2026
@ulbi
ulbi deleted the optio/task-f3ad5a0b-e773-4be4-85ef-0af3a857abb1 branch October 31, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant