-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix the rootdir in the nouse_install.yml #273
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.
- Make it explicit that
--rootdir=.
is a workaround.
@@ -83,7 +83,7 @@ jobs: | |||
python3 -c 'import os; print(os.getcwd())' | |||
python3 -c "import modmesh; print(modmesh.__file__)" | |||
python3 -c "import _modmesh; print(_modmesh.__file__)" | |||
pytest --rootdir=/tmp -v | |||
pytest --rootdir=. -v |
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.
Please keep the original code in a comment and add a link to the root cause. When the bug in pytest is fixed we can change it back.
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.
Thank you for your suggestions.
I write the comments, including the issue and the original code.
@@ -166,5 +166,5 @@ jobs: | |||
python3 -c 'import os; print(os.getcwd())' | |||
python3 -c "import modmesh; print(modmesh.__file__)" | |||
python3 -c "import _modmesh; print(_modmesh.__file__)" | |||
pytest --rootdir=/tmp -v | |||
pytest --rootdir=. -v |
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.
Change both places.
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.
Here are the modifications.
.github/workflows/nouse_install.yml
Outdated
### The following command is the original commend, and it will fail on pytest == 8.0.0 . | ||
### pytest --rootdir=/tmp -v | ||
### Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781 | ||
### The alternative command to solve the issue is ```pytest --rootdir=. -v```. | ||
pytest --rootdir=. -v |
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.
I add the comment, including the original command, the modified command, and the source of the issue and solutions.
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, the messages are clear. Could you please follow the comment style to use a single #
symbol?
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, the messages are clear. Could you please follow the comment style to use a single
#
symbol?
@yungyuc No problem, I modify the inconsistent part and push the modification to the branch.
.github/workflows/nouse_install.yml
Outdated
### The following command is the original commend, and it will fail on pytest == 8.0.0 . | ||
### pytest --rootdir=/tmp -v | ||
### Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781 | ||
### The alternative command to solve the issue is ```pytest --rootdir=. -v``` . | ||
pytest --rootdir=. -v |
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.
I also add the comment here.
In order to unify the coding style, I modify the comment for 1 #.
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.
I modify the number of #
to keep the consistent coding style.
# The following command is the original commend, and it will fail on pytest == 8.0.0 . | ||
# pytest --rootdir=/tmp -v | ||
# Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781 | ||
# The alternative command to solve the issue is ```pytest --rootdir=. -v```. |
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.
I modify the number of #
to keep the consistent coding style.
# The following command is the original commend, and it will fail on pytest == 8.0.0 . | ||
# pytest --rootdir=/tmp -v | ||
# Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781 | ||
# The alternative command to solve the issue is ```pytest --rootdir=. -v``` . |
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.
I modify the number of #
to keep the consistent coding style.
Thanks @ThreeMonth03 for working around the pytest issue (pytest-dev/pytest#11781) |
Work around the pytest issue pytest-dev/pytest#11781 by replacing `pytest rootdir=./tmp -v` with `pytest rootdir=. -v` Co-authored-by: ThreeMonth03 <sankagetsu.cs08@nycu.edu.tw>
Modify
pytest --rootdir=/tmp -v
topytest --rootdir=. -v
.