Add CI check of lock file
This MR makes it the CI poetry tests check that the lock file is consistent with the pyproject file. Right now the files are out of sync on main, and as a result the poetry tests fails and spits out.
Error: poetry.lock is not consistent with pyproject.toml. Run `poetry lock [--no-update]` to fix it.
I've screenshot this failure below as evidence that it fails when the files are out of sync. Once !1352 (merged) is merged, the unit tests on this should pass.