Skip to content
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

Reporting in PR #1

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- 'master'
schedule:
- cron: '0 0 * * *'

jobs:
demo:
Expand Down
2 changes: 1 addition & 1 deletion files/demo.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Name,City,Float,Birthday,Favorite color

Check failure on line 1 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

csv.header at column 1: "csv.header" at line 1, column "1:". Property "name" is not defined in schema: "/github/workspace/files/demo_invalid.yml".
Clyde,Rivsikgo,4825.1856,2000-01-01,green
Elsie,Vonavka,03.6544,2000-12-01,green
Derek,Sarefunaw,-177.9088,2000-01-31,green
Dylan,Wufolu,74605.944,1998-02-28,blue

Check failure on line 5 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

num_max at column 2:Float "num_max" at line 5, column "2:Float". The value "74605.944" is greater than the expected "74605".

Check failure on line 5 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

allow_values at column 4:Favorite color "allow_values" at line 5, column "4:Favorite color". Value "blue" is not allowed. Allowed values: ["red", "green", "Blue"].
Carl,Gorriju,0.8431,1955-05-14,red

Check failure on line 6 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

length_min at column 0:Name "length_min" at line 6, column "0:Name". The length of the value "Carl" is 4, which is less than the expected "5".

Check failure on line 6 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

date_min at column 3:Birthday "date_min" at line 6, column "3:Birthday". The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the expected "1955-05-15 00:00:00 +00:00 (1955-05-15)".
Landon,Mojebol,123.64,1989-05-15,red
Olive,Pebiogu,0,1955-05-14,green

Check failure on line 8 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

date_min at column 3:Birthday "date_min" at line 8, column "3:Birthday". The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the expected "1955-05-15 00:00:00 +00:00 (1955-05-15)".
Willie,Sowaah,0.001,2010-07-20,red

Check failure on line 9 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

date_max at column 3:Birthday "date_max" at line 9, column "3:Birthday". The date of the value "2010-07-20" is parsed as "2010-07-20 00:00:00 +00:00", which is greater than the expected "2009-01-01 00:00:00 +00:00 (2009-01-01)".
Derrick,Rakufag,42,1990-09-10,green
Lois,Mofninle,-19366059127.6032,1988-08-24,green
Lois,Mofninle,-19366059127.6032,1988-08-24,red

Check failure on line 11 in files/demo.csv

View workflow job for this annotation

GitHub Actions / Demo

length_min at column 0:Name "length_min" at line 11, column "0:Name". The length of the value "Lois" is 4, which is less than the expected "5".
2 changes: 2 additions & 0 deletions files/demo_invalid.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This schema is invalid because does not match the CSV file (demo.csv).

Check failure on line 1 in files/demo_invalid.yml

View workflow job for this annotation

GitHub Actions / Demo

schema at column 1: "schema", column "1:". The key "name" must be non-empty because the option "csv.header" = true.

filename_pattern: /demo\.csv$/

columns:
- name: Name
rules:
Expand Down
2 changes: 2 additions & 0 deletions files/demo_valid.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This schema is valid because match the CSV file (demo.csv) perfectly.

filename_pattern: /demo\.csv$/

columns:
- name: Name
rules:
Expand Down