-
Notifications
You must be signed in to change notification settings - Fork 9
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
Gh test #46
Gh test #46
Conversation
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.
We need several improvements in this action, Let's work on it step by step. 😊
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.
Thanks 🙏
Now we have to run check.sh
script instead of running pytest
directly in the workflow. I have implemented the required checks in that script, please take a look.
Also, I could not check the cache hit, could you please double-check and make sure caching is working 😊
@sudiptob2 i have manually re checked, all jobs are running fine and cache hit also successful. Now i need to work on running the bash script in the workflow. |
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.
we don't need to run pytest, its already inside the check.sh
@nilesh05apr I think if you could use
see this github action for example. |
@sudiptob2 i updated the code but the problem for check.sh remains same. |
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.
seems better now, But we still have errors right?
below checks might help.
caching : run the action multiple time and confirm that the cache is working
check.sh: I can see this script is failing, I suppose, I was using python
as interpreter may be python3
is needed. Also maybe we need to install the missing stubs
for the caching part i will re run the jobs as many times as required but for the check.sh file i am unable to find and helpful resource. |
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.
In my opinion, these changes are goin to the wrong direction, your previous commit was OK, just it might need to install some stub packages, you can revert these changes and I will try to check it myself and you know If I can fix it.
the problem is caching is also not working properly i have checked several times, can you please comment? |
Ok, just keep this PR at the previous commit, I will test and update you if I can find anything. You can always do experiments in a separate branch right. |
sure that i can do, i will create a new branch and try experimenting. Thanks |
Thanks so much @sudiptob2 for the help. I have implemented the changes and have ensured everything is running smoothly. |
@ can you please review and merge the pull request. Thank you |
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.
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: 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.
add a space before this line
.github/workflows/test.yml
Outdated
@@ -0,0 +1,52 @@ | |||
name: Test | |||
on: | |||
- pull_request |
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.
- pull_request |
.github/workflows/test.yml
Outdated
name: Test | ||
on: | ||
- pull_request | ||
- push |
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.
- push |
.github/workflows/test.yml
Outdated
uses: actions/cache@v2 | ||
id: cache-dependencies | ||
with: | ||
path: ./.venv |
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.
path: ./.venv | |
path: .venv |
@sudiptob2 i have copy-pasted the code XD. please review the changes |
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.
seems OK
Thank you @sudiptob2 i had great experience working on this issue. |
Implement a github action to check unit tests #33
Fresh PR for the above task.