All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 3m20s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 5s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s
Run pytests / Check-Pytest (push) Successful in 10s
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
25 lines
585 B
YAML
25 lines
585 B
YAML
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2025 Matthias Blankertz <matthias@blankertz.org>
|
|
---
|
|
name: Run pytests
|
|
"on":
|
|
push:
|
|
|
|
jobs:
|
|
Check-Pytest:
|
|
runs-on: ubuntu-22.04-full
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: git
|
|
- name: Get dependencies
|
|
run: |
|
|
python -m venv test-venv
|
|
test-venv/bin/pip install -r git/software/tests/requirements.txt
|
|
- name: Run pytest
|
|
run: |
|
|
. test-venv/bin/activate &&
|
|
cd git/software &&
|
|
pytest
|