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 8, 2024
1 parent 6a6feaf commit 6ed25f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Build for Windows
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=/Heroes3MapLiker Heroes3MapLiker.py
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker Heroes3MapLiker.py
ls
- name: Run Windows Tests
Expand All @@ -35,7 +35,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: windows-binaries
path: Heroes3MapLiker.exe
path: build/Heroes3MapLiker.exe
if: success()

build_and_test_macos:
Expand All @@ -57,7 +57,7 @@ jobs:
- name: Build for macOS
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=/Heroes3MapLiker_macos Heroes3MapLiker.py
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker_macos Heroes3MapLiker.py
ls
- name: Run macOS Tests
Expand All @@ -67,7 +67,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: mac-binaries
path: Heroes3MapLiker_macos
path: build/Heroes3MapLiker_macos
if: success()

build_and_test_linux:
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Build for Linux
run: |
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=/Heroes3MapLiker_linux Heroes3MapLiker.py
pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --name=Heroes3MapLiker_linux Heroes3MapLiker.py
ls
- name: Run Linux Tests
Expand All @@ -101,5 +101,5 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: linux-binaries
path: Heroes3MapLiker_linux
path: build/Heroes3MapLiker_linux
if: success()
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def test_binary_execution(self):
Return code. 0 = test passed. 1 = test failed.
"""
if sys.platform == 'win32' and not running_headless: # Check if running on Windows
binary_path = 'Heroes3MapLiker.exe'
binary_path = 'build/Heroes3MapLiker.exe'
elif sys.platform == 'darwin' and not running_headless: # Check if running on macOS
binary_path = 'Heroes3MapLiker_macos'
binary_path = 'build/Heroes3MapLiker_macos'
elif sys.platform.startswith('linux') and not running_headless: # Check if running on Linux and not headless
binary_path = 'Heroes3MapLiker_linux'
binary_path = 'build/Heroes3MapLiker_linux'
else:
self.skipTest("Skipping test cannot find Operating System")
return
Expand Down

0 comments on commit 6ed25f8

Please sign in to comment.