This creates a github workflow to run the unit and integration tests for pull requests and on merge to the main branch.
Along the way we also encountered a flaky test that needed fixing. In particular connections to http://localhost:8000 don't result in deterministic error messages because localhost can resolve to either 127.0.0.1 or [::]. To get a consistent result we needed to force the tests to use a fixed localhost address.
This creates a github workflow to run the unit and integration tests for pull requests and on merge to the
main
branch.Along the way we also encountered a flaky test that needed fixing. In particular connections to
http://localhost:8000
don't result in deterministic error messages becauselocalhost
can resolve to either127.0.0.1
or[::]
. To get a consistent result we needed to force the tests to use a fixed localhost address.