Files
mucapy/.gitea/workflows/run-mucapy.yml
rattatwinko bd7c32cb52
All checks were successful
Build MuCaPy Executable / build-and-package (push) Successful in 2m2s
bullshit dependency
2025-06-03 18:22:38 +02:00

50 lines
1.1 KiB
YAML

name: Build MuCaPy Executable
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install system dependencies (for OpenCV)
run: |
sudo apt-get update
sudo apt-get install -y libgl1
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: make test
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build executable with PyInstaller
run: |
pyinstaller --onefile --windowed mucapy/main.py \
--add-data "mucapy/styling:styling" \
--add-data "mucapy/models:models"
- name: Upload executable artifact
uses: actions/upload-artifact@v3
with:
name: mucapy-executable
path: dist/