Skip to content

Commit 30c5567

Browse files
committed
run a smoke test for the application in order to find import bugs
1 parent 4eb8113 commit 30c5567

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,28 @@ jobs:
3636
pyinstaller -F viewer.py
3737
mv dist/viewer dist/viewer_linux_python_${{ matrix.python-version }}
3838
39+
- name: Test Executable for Linux
40+
if: matrix.os == 'ubuntu-latest'
41+
run: |
42+
./dist/viewer_linux_python_${{ matrix.python-version }} &
43+
VIEWER_PID=$!
44+
sleep 10
45+
kill $VIEWER_PID
46+
3947
- name: Build Executable for Windows
4048
if: matrix.os == 'windows-latest'
4149
run: |
4250
pyinstaller -F viewer.py
4351
mv dist/viewer.exe dist/viewer_win64_python${{ matrix.python-version }}.exe
4452
53+
- name: Test Executable for Windows
54+
if: matrix.os == 'windows-latest'
55+
run: |
56+
./dist/viewer_win64_python${{ matrix.python-version }}.exe &
57+
VIEWER_PID=$!
58+
sleep 10
59+
kill $VIEWER_PID
60+
4561
- name: Upload Artifacts
4662
if: matrix.python-version == '3.11'
4763
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)