About Checking the Homeworks on Local #75
-
Hello, I would like to ask more general question about homework checking. As fas as I understand, in the github actions setup on the homeworks repo I'm curious how it's done with the real life projects. Is this the best practice or should we run the test on our local? For example I can try different approaches and I might like to see what would be the result without messing up on opening up a PR. Or maybe I get it wrong and the github actions is a general testing method which is related with the other components of the software and I should create my own unit tests for my program not the github actions? Also even I can run them locally, it is modifying the wiki page for example. I don't want to mess with it as well. Because it's not only effecting the single branch but the wiki on the main repository page. Maybe I might not run the whole pipeline but the necessary ones only. I don't know. Maybe it's whole another topic but I'm just a little bit confused. Also I pretty happy that homeworks and this checking method let me to deal with these and do a research about it. Note: I checked it online and encountered with a repository about it. What they wrote on the readme is exactly what I tought. I'm sharing the first part of their description.
Run your GitHub Actions locally! Why would you want to do this? Two reasons:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
A good question @Ermanas and the one I did not think to answer preemptively 😅 First of all, the gist of checking code goes along these lines:
That's the theory. In my own experience, I always run the unit and integration tests locally with language-specific frameworks, like Now we come to the CI I use here for testing student homeworks. It is much more complex than the usual setup as it has to handle comparing the student homework with the correct solutions that all have to be stored somewhere. It also generates a markdown file that gets uploaded to the PR and to the wiki. These steps are usually not really needed in real projects and are only here for the convenience of the students. If you want to be sure that the code runs as expected, just build it locally, test it locally and then upload. The only issues popping up on the CI side should be related with the CI-specific setup and are usually issues that I introduced one way or another 😅 Does this all make sense? Please do not hesitate to ask more questions if something is unclear! |
Beta Was this translation helpful? Give feedback.
A good question @Ermanas and the one I did not think to answer preemptively 😅
First of all, the gist of checking code goes along these lines: