Skip to content

Feat/pyinstaller

Feat/pyinstaller #105

Workflow file for this run

name: build
on:
push:
branches: ['*']
pull_request:
branches: ['*']
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test run
run: |
timeout 3 uvicorn canvas_app:app --port 9283 || [ $? -eq 124 ]
- name: Build executables
run: |
pip install pyinstaller
pyinstaller -F start.py
timeout 3 dist/start --port 9283 || [ $? -eq 124 ]