Skip to content

segmenter: Fix nb_frame count for interrupted acquisition #204

segmenter: Fix nb_frame count for interrupted acquisition

segmenter: Fix nb_frame count for interrupted acquisition #204

name: Build the controller
on:
push:
branches:
- 'main'
- 'software/beta'
- 'software/stable'
tags:
- 'controller/v*'
paths:
- 'controller/**'
- '.github/workflows/build-controller.yml'
pull_request:
paths:
- 'controller/**'
- '.github/workflows/build-controller.yml'
merge_group:
workflow_dispatch:
inputs:
git-ref:
description: 'Git ref (optional)'
required: false
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
IMAGE_NAME: 'controller'
MAIN_BRANCH: 'main' # pushing to this branch will update the "edge" tag on the image
BETA_BRANCH: 'software/beta' # pushing to this branch will update the "beta" tag on the image
STABLE_BRANCH: 'software/stable' # pushing to this branch will update the "stable" tag on the image
TAG_PREFIX: 'controller/v' # pushing tags with this prefix will add a version tag to the image and update the "latest" tag on the image
PUSH_IMAGE: ${{ (github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork) || github.event_name == 'push' || github.event_name == 'push tag' }}
jobs:
ci-checks:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y libcap-dev
- name: Install dependencies
working-directory: ./controller
run: |
uv sync --locked --dev
- name: Run checks
working-directory: ./controller
run: uv run poe check