specter-desktop/.github/workflows/test-specterd-build.yml
al-munazzim 3917c15e4f
chore: migrate PyInstaller 5.2 → 6.x, bump setuptools to 78.1.1 (#2587)
Co-authored-by: k9ert <117085+k9ert@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 13:43:30 +02:00

61 lines
1.6 KiB
YAML

name: Test specterd build
on:
pull_request:
paths:
- 'pyinstaller/**'
- 'requirements.in'
- 'requirements.txt'
- 'src/**'
- 'setup.py'
- 'setup.cfg'
- 'pyproject.toml'
- '.github/workflows/test-specterd-build.yml'
env:
PYTHON_VERSION: '3.10'
jobs:
build-and-smoke-test:
name: Build & smoke-test specterd (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
- name: Create virtualenv and install
run: |
pip install virtualenv
virtualenv --python=python${{ env.PYTHON_VERSION }} .buildenv
source .buildenv/bin/activate
pip install -r requirements.txt --require-hashes
pip install -e ".[test]"
pip install build==0.10.0
python3 -m build
pip install ./dist/cryptoadvance_specter-*.whl
- name: Install PyInstaller requirements
run: |
source .buildenv/bin/activate
pip install -r pyinstaller/requirements.txt
- name: Build specterd
run: |
source .buildenv/bin/activate
echo "0.0.0-test" > pyinstaller/version.txt
cd pyinstaller
pyinstaller specterd.spec
cd ..
- name: Smoke test
run: |
./pyinstaller/dist/specterd --help
./pyinstaller/dist/specterd server --help