Add ci #31
Workflow file for this run
This file contains hidden or 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: Test Builds | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test-build: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build release distributions | |
| run: | | |
| python3 -m venv .venv | |
| source .venv/bin/activate | |
| pip install -e ".[dev]" | |
| - name: Check for three JLink STM32F103RE devices | |
| run: | | |
| source .venv/bin/activate | |
| bmlab-scan --log-level DEBUG | tee scan_output.txt | |
| count=$(grep -c "Target: *STM32F103RE" scan_output.txt) | |
| if [ "$count" -eq 3 ]; then | |
| echo "Found exactly three JLink STM32F103RE devices." | |
| else | |
| echo "Error: Found $count JLink STM32F103RE devices, expected 3." | |
| cat scan_output.txt | |
| exit 1 | |
| fi |