Closed tirthbha closed 1 year ago
Hey tirth, I have created a yml file for unit testing in my repo. But it is reported that all jobs have failed. Have you tried it?
@tirthbha
@poojashresthacode Yeah there might be problem with the code. Can you show me the error that you got there.
So, I created the workflow for unit testing from the code that the professor pushed in our repo. And I got an error message.
@poojashresthacode This the message which informs you that code fails to execute. The actual error is shown in the workflow file. Can you show me that error what exactly it was?
@tirthbha The issue was resolved. Sorry, I forgot to mention it here. Thankyou for helping.
Basically, we will do the following steps for this task, if I were not wrong: 1) Initialize GitHub Actions by creating a .yml file within .github/workflows in the repository. 2) Define Workflow Triggers by specifying events like push or pull request to the main branch that initiate the workflow, which includes check out the repository, set up a Python environment, install necessary Python packages: numpy, matplotlib, pytest, flake8, perform linting using flake8, and run unit tests with pytest. 3) Finally, the Documentation part, where we will write instructions detailing the process of creating and configuring theGitHub Actions workflow. Correct me if I was wrong here.