Skip to content

run a smoke test for the application in order to find import bugs #36

run a smoke test for the application in order to find import bugs

run a smoke test for the application in order to find import bugs #36

Workflow file for this run

name: Build SimpleDDNetAutomapper
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.11']
architecture: ['x64']
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install PyQt
run: pip install -r requirements.txt
- name: Build Executable for Linux
if: matrix.os == 'ubuntu-latest'
run: |
pyinstaller -F viewer.py
mv dist/viewer dist/viewer_linux_python_${{ matrix.python-version }}
- name: Test Executable for Linux
if: matrix.os == 'ubuntu-latest'
run: |
./dist/viewer_linux_python_${{ matrix.python-version }} &
VIEWER_PID=$!
sleep 10
kill $VIEWER_PID
- name: Build Executable for Windows
if: matrix.os == 'windows-latest'
run: |
pyinstaller -F viewer.py
mv dist/viewer.exe dist/viewer_win64_python${{ matrix.python-version }}.exe
- name: Test Executable for Windows
if: matrix.os == 'windows-latest'
run: |
./dist/viewer_win64_python${{ matrix.python-version }}.exe &
VIEWER_PID=$!
sleep 10
kill $VIEWER_PID
- name: Upload Artifacts
if: matrix.python-version == '3.11'
uses: actions/upload-artifact@v4
with:
name: simple_ddnet_automapper_${{ matrix.os }}_${{ matrix.architecture }}
path: dist/