Skip to content

feat: replace hatch with poetry #25

feat: replace hatch with poetry

feat: replace hatch with poetry #25

name: Build remotivelabs-broker package and documentation
on: push
jobs:
build:
name: Build remotivelabs-broker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build package and docs
env:
NO_TTY: true
run: ./python/remotivelabs-broker/docker-build.sh
- id: build_output
run: echo "whl_path=$(ls python/remotivelabs-broker/dist/*.whl)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: remotivelabs-broker-whl
path: ${{ steps.build_output.outputs.whl_path }}
if-no-files-found: error
retention-days: 1
overwrite: true
test:
name: Install remotivelabs-broker
needs: build
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v4
with:
name: remotivelabs-broker-whl
- id: download_artifact
run: echo "library_path=$(ls *.whl)" >> $GITHUB_OUTPUT
shell: bash
- name: Install remotivelabs-broker
run: pip install ${{ steps.download_artifact.outputs.library_path }}
shell: bash