Skip to content

Commit

Permalink
Fix the rootdir in the nouse_install.yml (#273)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ThreeMonth03 and ThreeMonth03 authored Feb 2, 2024
1 parent 0568bdf commit 9ae2db3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/nouse_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ 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
# 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
cd ..
nouse_install_macos:
Expand Down Expand Up @@ -166,5 +170,9 @@ 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
# 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
cd ..

0 comments on commit 9ae2db3

Please sign in to comment.