Skip to content

Updated readme for command keys to reflect angle to key mapping. #14

Updated readme for command keys to reflect angle to key mapping.

Updated readme for command keys to reflect angle to key mapping. #14

Workflow file for this run

name: Ubuntu
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Python ${{ matrix.python-version }} on Ubuntu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies for X11
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
- name: Create virtual environment and install dependencies
run: |
uv venv
uv pip install -e .[dev]
if [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi
uv pip install flake8 pytest pytest-cov
- name: Lint with flake8
run: |
uv run flake8 drone_base/ --count --select=E9,F63,F7,F82 --show-source --statistics
uv run flake8 drone_base/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests with pytest and coverage
run: |
xvfb-run -a uv run pytest --cov=drone_base --cov-report=xml