-
-
Notifications
You must be signed in to change notification settings - Fork 185
Add CI Pipeline for Validating challenge_config.yml
#99
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
base: master
Are you sure you want to change the base?
Conversation
validate_config.py
Outdated
| from jsonschema import validate, ValidationError | ||
| from datetime import datetime | ||
|
|
||
| SCHEMA = { |
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.
@Eeshu-Yadav Can you please use the API from EvalAI to validate the challenge configuration on the server?
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 @RishabhJain2018,
Thank you for the feedback! I will update the PR to use the EvalAI API for server-side validation of the challenge_config.yml file.
|
Try re-using this script if possible: https://github.com/Cloud-CV/EvalAI-Starters/blob/master/github/challenge_processing_script.py |
.github/workflows/ci.yml
Outdated
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python 3.9 |
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.
Can we use the latest python version?
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.
@RishabhJain2018 sorry for that , updated that.
|
@RishabhJain2018 even after putting the correct credentials , it is failing and showing logs in github actions like this : Eeshu-Yadav#3 |
|
Hey @Eeshu-Yadav , You need to only use this API: https://github.com/Eeshu-Yadav/EvalAI-Starters/blob/b3898846b718e00c938981995ea4b6b74516ad20/github/config.py#L7 and not use the other API for creating the challenge. We just need to validate if the challenge config is valid even when any PR is merged in the repository. |
|
Hey @Eeshu-Yadav , Instead of changing the current python script, I would suggest you to add a new script. The current script is already being utilized in a feature. |
|
okk @RishabhJain2018 sir , will work on that and raise a pr soon , Thanks |
|
Hey @Eeshu-Yadav , Any updates on this? |
|
@RishabhJain2018 extremely sorry for the delay , yesterday my exams finished , will raise a pr in the evening , working on that |
|
No worries. Thanks for the update. |
Description
This PR adds a GitHub Actions workflow to automatically validate the
challenge_config.ymlfile whenever a PR is opened or merged into themasterbranch. The validation ensures that the configuration file adheres to the required schema and that all referenced files (e.g., templates, annotations) exist.Changes
.github/workflows/ci.yml:masterchallenge_config.ymlRelated Issues
Checklist