Skip to content

feat(ci): add GitHub Actions workflow and act support#14

Merged
nik-localstack merged 2 commits into
masterfrom
unc-472-ci
May 15, 2026
Merged

feat(ci): add GitHub Actions workflow and act support#14
nik-localstack merged 2 commits into
masterfrom
unc-472-ci

Conversation

@nik-localstack
Copy link
Copy Markdown

@nik-localstack nik-localstack commented May 12, 2026

Stacked on #13.

This PR adds a GitHub Actions CI workflow that runs the full test suite on Python 3.13, along with act support for running the same workflow locally.

Changes

  • Add .github/workflows/tests.yml: runs the full test suite on Python 3.13 via GitHub Actions
  • Add .actrc: default flags for running the workflow locally with act
  • Add Makefile target: test-act (runs the CI workflow locally via act)
  • Extend root README.md testing section with act instructions

Copy link
Copy Markdown
Member

@cloutierMat cloutierMat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left a couple questions but nothing blocking! Glad to have some CI here. Great first step before we can enable CI releases!

Comment thread .github/workflows/tests.yml Outdated

services:
postgres:
image: postgres:16
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: Any particular reason for using version 16?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, switching this to current major (18)

Comment on lines +22 to +26
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Are the health checks of the postgres image not enough?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Official postgres images (e.g., 17/18) do not define a Docker HEALTHCHECK by default. Define one explicitly so the GitHub Actions service waits for readiness.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add a linting step?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but let's add it as a next step. wdyt ?

Comment thread .github/workflows/tests.yml Outdated
Comment thread Makefile
ACT_PULL ?= false
ACT_CONTAINER_ARCH ?= linux/arm64

test-act: ## Run the CI test workflow locally with act
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nik-localstack nik-localstack changed the base branch from unc-472-local-tests to master May 15, 2026 10:22
@nik-localstack nik-localstack merged commit eb000fc into master May 15, 2026
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