Skip to content

Commit d538c15

Browse files
ThreeMonth03j8xixo12
authored andcommitted
Fix the rootdir in the nouse_install.yml (solvcon#273)
Work around the pytest issue pytest-dev/pytest#11781 by replacing `pytest rootdir=./tmp -v` with `pytest rootdir=. -v` Co-authored-by: ThreeMonth03 <[email protected]>
1 parent 7890340 commit d538c15

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/nouse_install.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ jobs:
8383
python3 -c 'import os; print(os.getcwd())'
8484
python3 -c "import modmesh; print(modmesh.__file__)"
8585
python3 -c "import _modmesh; print(_modmesh.__file__)"
86-
pytest --rootdir=/tmp -v
86+
# The following command is the original commend, and it will fail on pytest == 8.0.0 .
87+
# pytest --rootdir=/tmp -v
88+
# Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781
89+
# The alternative command to solve the issue is ```pytest --rootdir=. -v```.
90+
pytest --rootdir=. -v
8791
cd ..
8892
8993
nouse_install_macos:
@@ -166,5 +170,9 @@ jobs:
166170
python3 -c 'import os; print(os.getcwd())'
167171
python3 -c "import modmesh; print(modmesh.__file__)"
168172
python3 -c "import _modmesh; print(_modmesh.__file__)"
169-
pytest --rootdir=/tmp -v
173+
# The following command is the original commend, and it will fail on pytest == 8.0.0 .
174+
# pytest --rootdir=/tmp -v
175+
# Here is the issue and temporary solution: https://github.com/pytest-dev/pytest/issues/11781
176+
# The alternative command to solve the issue is ```pytest --rootdir=. -v``` .
177+
pytest --rootdir=. -v
170178
cd ..

0 commit comments

Comments
 (0)