From 03dc4f4b0274b5aa05a8e3042ae993e911debfc9 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 30 Jun 2025 20:58:59 +0200 Subject: [PATCH] .github: Add Action to run pytest --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d4c0cc..a5df051 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,24 @@ on: - '*' jobs: + pytest: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest] + python: ['3.9', '3.x'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - run: pip install --upgrade pip + - run: pip install pytest-cov -r requirements.txt -r requirements-dev.txt + - run: pytest --cov=mavsdk ubuntu22: name: Ubuntu 22.04 x86_64 runs-on: ubuntu-22.04