Skip to content

Crazy Stab Lab 🗡️ #1502

Crazy Stab Lab 🗡️

Crazy Stab Lab 🗡️ #1502

name: Crazy Stab Lab 🗡️
# Controls when the action will run.
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
testsuite_at_crazylab:
runs-on: self-hosted
timeout-minutes: 120
container:
image: python:3.9.7-buster
options: --privileged
env:
CRAZY_SITE: crazylab-malmö
steps:
- name: Install libusb
run: |
apt update
apt install -y libusb-1.0-0 uhubctl
- name: Upgrade pip
run: |
pip3 install --upgrade pip
- name: Install pytest
run: pip3 install pytest
- name: Install Crazyflie python library
run: pip3 install git+https://github.com/bitcraze/crazyflie-lib-python.git@master
- name: Check out sources
uses: actions/checkout@v4
- name: Install requirements
run: pip3 install -r requirements.txt
- name: Download latest firmware files
with:
repo: bitcraze/crazyflie-release
workflow: nightly.yml
uses: dawidd6/action-download-artifact@v3
- name: Reset power to all devices
run: python3 management/usb-power-reset.py -a reset
- name: Upgrade devices to latest firmware
run: python3 management/program.py --file nightly/firmware-cf2-nightly.zip
- name: Run test suite
run: pytest --verbose --junit-xml $CRAZY_SITE-$(date +%s).xml tests/QA
- name: Checkout Crazyflie python library
uses: actions/checkout@v4
with:
repository: bitcraze/crazyflie-lib-python
path: crazyflie-lib-python
- name: Pip install the library
run: pip3 install crazyflie-lib-python/
- name: Run Crazyflie python library examples
run: |
python3 -u utils/run_examples.py --path crazyflie-lib-python