Skip to content

Commit

Permalink
ci: fix testing for #476 (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO authored Dec 19, 2024
1 parent fdb9a0c commit da15219
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ jobs:
- name: Run Python testing
shell: bash
run: |
python3 -m pip install -r ./install/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./install
python3 -m pip install -r ./source/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./source/binding/Python ./install
- name: Run NodeJS testing
shell: bash
Expand Down Expand Up @@ -247,8 +247,8 @@ jobs:
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r ./install/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./install
python3 -m pip install -r ./source/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./source/binding/Python ./install
- name: Run NodeJS testing
shell: bash
Expand Down Expand Up @@ -362,8 +362,8 @@ jobs:
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r ./install/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./install
python3 -m pip install -r ./source/binding/Python/requirements.txt
python3 ./test/python/binding_test.py ./source/binding/Python ./install
- name: Run NodeJS testing
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions test/python/binding_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

import numpy

if len(sys.argv) < 2:
print("Usage: python binding_test.py <install_dir>")
if len(sys.argv) < 3:
print("Usage: python binding_test.py <binding_dir> <install_dir>")
sys.exit(1)

install_dir = Path(sys.argv[1]).resolve()
binding_dir = Path(install_dir, "binding", "Python")
binding_dir = Path(sys.argv[1]).resolve()
install_dir = Path(sys.argv[2]).resolve()

os.environ["MAAFW_BINARY_PATH"] = str(f"{install_dir}/bin")
print(f"install_dir: {install_dir}")
print(f"binding_dir: {binding_dir}")
print(f"install_dir: {install_dir}")

if str(binding_dir) not in sys.path:
sys.path.insert(0, str(binding_dir))
Expand Down

0 comments on commit da15219

Please sign in to comment.