ubsuny / 23-Homework4G4

MIT License
0 stars 10 forks source link

Steps to follow! #11

Closed tirthbha closed 1 year ago

tirthbha commented 1 year ago

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.

poojashresthacode commented 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?

poojashresthacode commented 1 year ago

@tirthbha

tirthbha commented 1 year ago

@poojashresthacode Yeah there might be problem with the code. Can you show me the error that you got there.

poojashresthacode commented 1 year ago

So, I created the workflow for unit testing from the code that the professor pushed in our repo. And I got an error message. 370333279_1001713951034697_8104607040999994657_n

tirthbha commented 1 year ago

@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?

poojashresthacode commented 1 year ago

@tirthbha The issue was resolved. Sorry, I forgot to mention it here. Thankyou for helping.