Skip to content

Improve Linux Bluez Pairing Robustness #161

Improve Linux Bluez Pairing Robustness

Improve Linux Bluez Pairing Robustness #161

Workflow file for this run

# python_sdk_test.yml/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
# This copyright was auto-generated on Wed, Sep 1, 2021 5:05:35 PM
# It only runs when something inside sdk_wireless_camera_control has changed
name: Python SDK Unit Testing
on:
pull_request:
branches: [main, develop, release]
paths:
- 'demos/python/sdk_wireless_camera_control/**'
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.9", "3.10"]
include:
- os: ubuntu-latest
path: ~/.cache/pip
- os: macos-latest
path: ~/Library/Caches/pip
- os: windows-latest
path: ~\AppData\Local\pip\Cache
steps:
- name: Checkout source branch
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Check for cached pip environment
uses: actions/cache@v2
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('demos/python/sdk_wireless_camera_control/poetry.lock') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install Bluez on Ubuntu
run: sudo apt-get update && sudo apt install -y bluez
if: ${{ matrix.os == 'ubuntu-latest'}}
- name: Install dependencies
working-directory: ./demos/python/sdk_wireless_camera_control/
run: |
python -m pip install --upgrade pip wheel
pip install nox==2022.8.7
pip install nox-poetry==1.0.1
pip install poetry
- name: Perform checks (format, types, lint, docstrings, unit tests, docs, safety)
working-directory: ./demos/python/sdk_wireless_camera_control/
run: nox -p ${{ matrix.python-version }}
- name: Archive test report on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-reports
path: ./demos/python/sdk_wireless_camera_control/.reports
retention-days: 2