Skip to content

Add GitHub Actions CI, floci AWS emulator, and update Docker setup - #22

Merged
bjinwright merged 7 commits into
masterfrom
claude/github-actions-tests-FHjuh
Jun 3, 2026
Merged

bjinwright merged 7 commits into
masterfrom
claude/github-actions-tests-FHjuh

Conversation

@bjinwright

Copy link
Copy Markdown
Member
  • Add .github/workflows/tests.yml: runs pytest via Poetry with floci
    as a service container for local AWS emulation (DynamoDB, SQS, etc.)
  • Replace instructure/dynamo-local-admin with floci/floci:latest in
    docker-compose.yaml; update unittest service env vars to point at it
  • Switch hardcoded Poetry virtualenv paths to poetry run commands
    so the compose file is not tied to a specific Python version
  • Update Dockerfile: Python 3.6 (EOL) → 3.9, fix missing leading /
    in WORKDIR

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM

claude added 7 commits June 3, 2026 21:51
- Add .github/workflows/tests.yml: runs pytest via Poetry with floci
  as a service container for local AWS emulation (DynamoDB, SQS, etc.)
- Replace instructure/dynamo-local-admin with floci/floci:latest in
  docker-compose.yaml; update unittest service env vars to point at it
- Switch hardcoded Poetry virtualenv paths to `poetry run` commands
  so the compose file is not tied to a specific Python version
- Update Dockerfile: Python 3.6 (EOL) → 3.9, fix missing leading /
  in WORKDIR

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
…te lock file

Replace deprecated [tool.poetry.dev-dependencies] with
[tool.poetry.group.dev.dependencies] and regenerate poetry.lock
to be compatible with the current Poetry version.

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
PyYAML 5.x fails to build on Python 3.14 due to a missing
cython_sources attribute in its legacy build setup. PyYAML 6.x
dropped the Cython extension and builds cleanly on 3.14.

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
- pytest ^4.5 → ^8.0 (4.x imported `imp`, removed in Python 3.12)
- pytest-asyncio ^0.10.0 → ^0.24
- Django ^2.2 → ^4.2 (test WSGI app)
- flask ^1.0 → ^3.0 (test WSGI app)
- jinja2 ^2.10 → ^3.1 (required by flask ^3.0)
- python constraint ^3.6 → ^3.9 (reflects actual minimum)

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
The re-export forced test_run.py to load at collection time, which
pulled in docb_handler (created eagerly at module level) and triggered
a boto3 NoRegionError before any test ran. FlaskTestRunner is only
used inside test_run.py itself, so the re-export was never needed.

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
Python 3.12+ no longer implicitly creates an event loop in the main
thread, so asyncio.get_event_loop() raises RuntimeError when called
outside a running loop. asyncio.run() is the correct modern API.

https://claude.ai/code/session_01WQrysGnuUmHvNbh44YzpuM
@bjinwright
bjinwright merged commit 8de019a into master Jun 3, 2026
2 checks passed
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.

2 participants