That would be one approach, but I think it might be a flaky one as your CI seems to be only checking for the definition of these functions.
While you could probably make sure that the code is at least executable, you cannot give any guarantee that it’s indeed working.