Skip to content

brewblox-ctl flash detects and continues when a particle device already in DFU mode is found #142

brewblox-ctl flash detects and continues when a particle device already in DFU mode is found

brewblox-ctl flash detects and continues when a particle device already in DFU mode is found #142

Workflow file for this run

name: CI build
on:
push:
branches: ["**"]
pull_request:
branches: [develop, edge]
jobs:
build:
if: github.repository_owner == 'BrewBlox'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Set tag variable
run: |
echo "TAG=$(echo "${{ github.ref_name }}" | tr '/' '-' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry wheel
poetry install
- name: Test
run: |
poetry run pytest
poetry run flake8
- name: Build
run: |
poetry build -f sdist
- name: Upload to Azure Storage
if: github.event_name != 'pull_request'
run: >-
az storage blob upload
--account-name brewblox
--container-name ctl
--sas-token "${{ secrets.CTL_SAS_TOKEN }}"
--name "${{ env.TAG }}/brewblox-ctl.tar.gz"
--file "./dist/brewblox_ctl-1.0.0.tar.gz"
--overwrite