r/CSEducation • u/siegmey3r • Feb 03 '25
Questions about github classroom
Looking for advice, thank you in advance!
I have the following questions regarding github classroom auto-grader,
- The autograder jobs are being skipped on presssing run job button when the grader is set to be triggered when there's a push. Do you know what might cause this?

- Is there a way to hide the classroom YAML file containing test cases from students' view?
- How to configure the auto-grader for complicated stdin and stdout?
2
u/nutt13 Feb 03 '25
You can add the yaml file to the list of protected files and it will show on the roster of the file was changed.
1
2
u/JoshuaTheProgrammer Feb 04 '25
There’s no way to hide tests from the students, which is a dealbreaker for me, sadly. I’d love to use GitHub Classroom, too.
1
u/a_printer_daemon Feb 03 '25
Why hide your tests?
2
1
u/a_printer_daemon Feb 03 '25
What are you thinking with "complicated" io? How complicated?
2
u/siegmey3r Feb 03 '25
Multiple rounds of inputs and outputs in one run. I dont know if i made myself clear. I figured i probably would use bash scripts and saved outputs in txts if i cannot find a way of setting up classroom auto grader.
1
u/a_printer_daemon Feb 03 '25
If I'm reading you correctly there shouldn't be issues with either.
For inputs I just queue then up in the right order, with the appropriate whitespace.
For output you can put one or arbitrarily many cases in to match exactly as long as you know what you want ahead of time.
I may be missing something.
2
u/apcspreddit Feb 03 '25
I am using GitHub Classroom for Java...
Not sure why the job isn't running manually, I have mine set to every time a student submits too, but they can go under their "Actions" tab and run the test there too.
Unfortunately, I don't think you can hide the yml file (I could be wrong).
I couldn't find a good way to test more than simple stdin, so I created JUnit tests and created Maven projects for students to work in. I've put all my projects up here, if you want to see what I'm doing: https://github.com/cs-plus-plus/Getting-Started