In order to run our unit tests in GitHub action workflows, we need a database to connect to. I have read a bit into GitHub action services, and I tried to set something up, so that we can spin up a postgres instance while testing. I don't think it necessarily works, however. Im using act to test locally.
I see us having two options:
Host database somewhere else to test against. Maybe we can point at the eventual pephub database
Spin up database inside the github action containers.
In order to run our unit tests in GitHub action workflows, we need a database to connect to. I have read a bit into GitHub action services, and I tried to set something up, so that we can spin up a postgres instance while testing. I don't think it necessarily works, however. Im using act to test locally.
I see us having two options:
I'm more partial to option 2 (or other options if there are other options!) Help is very much appreciated here. You can see the action I've got setup so far, here: https://github.com/pepkit/pephub_db/blob/dev_nathan/.github/workflows/pytest.yml