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

Validate datetimes in metadata #8

Open
mhpob opened this issue Mar 26, 2024 · 0 comments
Open

Validate datetimes in metadata #8

mhpob opened this issue Mar 26, 2024 · 0 comments

Comments

@mhpob
Copy link
Contributor

mhpob commented Mar 26, 2024

When validating a metadata file using this GitHub Action, datetimes such as "2024-03-26T14:00:00Z" error with "can't compare offset-naive and offset-aware datetimes". This does not happen for me locally when using yamale -s <schema> -p ruamel <file>, but does happen when using the default -p PyYAML (yamale -s <schema> <file>).

Example error:
https://github.com/ocean-tracking-network/demo-data/actions/runs/8430264168/job/23085844309#step:5:7

I've submitted a PR to validate deployment/recovery datetime as strings to get past the check, but I think we would want to validate them as datetimes. Not sure what I'm missing between my system and the blank runner used by GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant