-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Overall this is good, but a few specific issues that need to be dealt with.
- move away from deprecated
set-output
command - deal with dependencies for
test
script - fix jsonschema-cli validation step
See other comments for suggestions.
Joey
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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