Skip to content

Commit

Permalink
fix tests for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesneimog committed Dec 10, 2023
1 parent df76f2b commit 1c0f251
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/Builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,24 @@ jobs:
- name: set Enviroment
run: |
brew install --cask pd
python3.11 -c 'import sysconfig;print(sysconfig.get_config_var("LINKFORSHARED"))'
python3.11 -m pip install numpy
mkdir py4pd
- name: Build
run: make PYTHON_VERSION=python3.11 extension=d_amd64

- name: Copy Files and Set for Tests
run: |
mkdir py4pd
mv py4pd.d_amd64 py4pd
cp -r py4pd test
cp -r resources test/py4pd
- name: Run Tests
continue-on-error: true
run: |
python3.11 ./test/runTests.py
cd test
python3.11 ./runTests.py
- name: Upload Object
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -161,7 +168,6 @@ jobs:
- name: set Enviroment
run: |
brew install --cask pd
python3.11 -c 'import sysconfig;print(sysconfig.get_config_var("LINKFORSHARED"))'
python3.11 -m pip install numpy
mkdir py4pd
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
Python
bin
pd/
py4pd/
test/py4pd/
py4pd.zip
DLLs/*
Lib/*
Expand Down
4 changes: 2 additions & 2 deletions test/runTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def runTest(pdpatch):

py4pdPath = os.path.abspath(scriptfolder)
cmd = (
f'/Applications/Pd-*.app/Contents/Resources/bin/pd -stderr -path {py4pdPath} -send "start-test bang" '
f'/Applications/Pd-*.app/Contents/Resources/bin/pd -stderr -nogui -noaudio -path {py4pdPath} -send "start-test bang" '
+ pathfile
)
try:
output = subprocess.run(cmd, capture_output=True, text=True, shell=True)
output = subprocess.run(cmd, capture_output=True, text=True, shell=True, timeout=45)
outputLines = str(output).split("\\n")
except subprocess.TimeoutExpired:
print("\033[K", end="\r")
Expand Down

0 comments on commit 1c0f251

Please sign in to comment.