Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeet-chand committed Jun 2, 2024
1 parent 491f9ab commit 5563693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ jobs:

- name: Install dependencies
run: |
pip install Pillow requests pyinstaller pyautogui xvfbwrapper # for headless displays including xvfbwrapper
sudo apt-get install python3-tk
pip install Pillow requests pyinstaller pyautogui
- name: Build for Linux
run: |
Expand Down
5 changes: 3 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,17 @@ def test_binary_execution(self):
Returns:
Return code. 0 = test passed. 1 = test failed.
"""
if sys.platform == 'win32': # Check if running on Windows
if sys.platform == 'win32' and not running_headless: # Check if running on Windows
binary_path = 'Heroes3MapLiker.exe'
elif sys.platform == 'darwin': # Check if running on macOS
elif sys.platform == 'darwin' and not running_headless: # Check if running on macOS
binary_path = './Heroes3MapLiker'
elif sys.platform.startswith('linux') and not running_headless: # Check if running on Linux and not headless
binary_path = './Heroes3MapLiker'
else:
self.skipTest("Skipping test in headless environment")
return


# Start the binary
process = subprocess.Popen([binary_path])

Expand Down

0 comments on commit 5563693

Please sign in to comment.