Add github workflow to validate samples#104
Conversation
Uses frictionlessdata/repository - which doesn't allow flag `--schema-sync` so will likely need to modify
|
While it doesn't seem like there is the ability to add You can at this time add an |
botanize
left a comment
There was a problem hiding this comment.
Ok, glad they're looking into it. I don't think we should merge this workflow until there's a mechanism to specify --schema-sync, otherwise it will just produce huge reports (1 line per row of the csv!) full of spurious errors.
The alternative is to run frictionless validate --schema-sync directly in the workflow instead of using the frictionless repository workflow.
...so we can use --schema-sync Also publishes a comment with the validation of sample data. Need sample data really to test effectively.
So you don't need to copy/paste from documentation
Script will find all executables in /tests and run them. validate_profile script now downloads the json-schema for profiles from URL Also: - update docs - fix script
botanize
left a comment
There was a problem hiding this comment.
Some lingering errors in tests
set-output --> $GITHUB_ENV external placeholder.com --> octocons + schema-sync
+ nullglob ** --> *
|
@botanize I think i got all your comments addressed in subsequent commits minus the one suggesting that only do validation on the files that actually changed (we can address that when we have files to do). |
botanize
left a comment
There was a problem hiding this comment.
I'd still like to test this on actual sample data, but everything else seems to work, so let's merge.
This PR adds a GitHub workflow for sample validation and adds a script to locally validate schemas and samples as well as lint.
Also:
jsonschema