Add files via upload #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
if exist requirements.txt pip install -r requirements.txt | |
shell: cmd | |
- name: Build with pyinstaller | |
run: | | |
pyinstaller --noconfirm --onefile --windowed --icon "./resources/logo.ico" VisualQC.py | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: VisualQC-Windows_V0.3 | |
path: ./dist/ | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Build with pyinstaller | |
run: | | |
pyinstaller --noconfirm --onefile --windowed VisualQC.py | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: VisualQC-Linux_V0.3 | |
path: ./dist/ |