source-academy / stories-backend

Backend of Source Academy extension for Stories support.
0 stars 0 forks source link

Add PostgreSQL service to CI environment #48

Closed RichDom2185 closed 1 year ago

RichDom2185 commented 1 year ago

Loosely followed guide from https://docs.github.com/en/actions/using-containerized-services/creating-postgresql-service-containers.

This allows DB-related tests to be run in CI.

The corresponding tests have also been un-skipped so that they will run in the CI environment.

Closes #47.

RichDom2185 commented 1 year ago

@YaleChen299 this is also blocked by #39 as we need to first create the DB before connect_test can function.

RichDom2185 commented 1 year ago

@YaleChen299 this is also blocked by #39 as we need to first create the DB before connect_test can function.

I decided we can use the postgres default DB for now, but once #39 is merged, then we will use our own DB.

github-actions[bot] commented 1 year ago

Coverage Status

coverage: 61.35% (+4.3%) from 57.055% when pulling 127338942b7310e8fbb66df51c868e13ff38a664 on add-postgres-to-ci into 052e316374a73c2159e4d5d24414ae5fcc4ca998 on main.