RDFLib / VocPrez

A tool (API and web front-end) for the read-only delivery system of SKOS vocabularies.
GNU General Public License v3.0
21 stars 13 forks source link

Create a Github Action which runs Fuseki SPARQL endpoint and preloads data #26

Closed metazool closed 3 years ago

metazool commented 4 years ago

This was my attempted answer to this issue: https://github.com/RDFLib/VocPrez/issues/21

The Action runs, creates and populates a DB, but the tests are still failing to connect to the VocPrez instance on port 5000 no matter how it's run. I would have suggested a rewrite of the Flask tests even before seeing this, though.

I hope it's a useful illustration of a way to set this up in CI, wish I had seen it through end-to-end though! If you accept it you probably want to squash commits as there's an awful lot of trial-and-error with the configuration in here :)

cc @KoalaGeo

metazool commented 4 years ago

https://gist.github.com/metazool/6019612f04d10bdf149e80d20cffd22b - this snippet shows how the first few tests look rewritten to use the Flask test client - uncertainty is around what sample data the tests depend on. If we can see that half then i'm happy to keep chipping away at the test runner side