Skip to content

Commit 03dc4f4

Browse files
committed
.github: Add Action to run pytest
1 parent b6abbbc commit 03dc4f4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@ on:
1111
- '*'
1212

1313
jobs:
14+
pytest:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
19+
python: ['3.9', '3.x']
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
fetch-depth: 0
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python }}
29+
- run: pip install --upgrade pip
30+
- run: pip install pytest-cov -r requirements.txt -r requirements-dev.txt
31+
- run: pytest --cov=mavsdk
1432
ubuntu22:
1533
name: Ubuntu 22.04 x86_64
1634
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)