Skip to content

Commit 4b49a86

Browse files
committed
[Tests] Fix binary path
1 parent 1291403 commit 4b49a86

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Test OctoBot Binary on Linux
125125
if: matrix.os == 'ubuntu-latest'
126126
run: |
127-
chmod +x OctoBot_linux_x64
127+
chmod +x OctoBot_linux_x64/OctoBot_ubuntu-latest_x64
128128
pytest tests
129129
130130
- name: Download MacOs x64 artifact
@@ -137,7 +137,7 @@ jobs:
137137
- name: Test OctoBot Binary on MacOs
138138
if: matrix.os == 'macos-latest'
139139
run: |
140-
chmod +x OctoBot_macos_x64
140+
chmod +x OctoBot_macos_x64/OctoBot_macos-latest_x64
141141
pytest tests
142142
143143
create-release:

tests/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def is_on_windows():
2424

2525
def get_binary_file_path() -> str:
2626
if is_on_windows():
27-
return "OctoBot_windows_x64.exe"
27+
return "OctoBot_windows_x64.exe/OctoBot_windows.exe"
2828
elif platform.system() == "Darwin":
29-
return "./OctoBot_macos_x64"
29+
return "./OctoBot_macos_x64/OctoBot_macos-latest_x64"
3030
else:
31-
return "./OctoBot_linux_x64"
31+
return "./OctoBot_linux_x64/OctoBot_ubuntu-latest_x64"
3232

3333

3434
def delete_folder_if_exists(folder_path):

0 commit comments

Comments
 (0)