mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Co-authored-by: k9ert <117085+k9ert@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
61 lines
1.6 KiB
YAML
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
|