In order to be able to provide all functions of the DBus during testing, the CI uses the Python 3.11 version in a Bookworm container for testing. This is the version that is pre-installed in Debian Bookworm. Signed-off-by: Sven Sager <s.sager@kunbus.com>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
# SPDX-FileCopyrightText: 2025 KUNBUS GmbH <support@kunbus.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
default:
|
|
tags:
|
|
- self-hosted
|
|
- host-arm64
|
|
- high-perf
|
|
|
|
include:
|
|
- project: "revolutionpi/infrastructure/ci-templates"
|
|
file: "base.yml"
|
|
- project: "revolutionpi/infrastructure/ci-templates"
|
|
file: "check-commit/lint-commit.yml"
|
|
- project: "revolutionpi/infrastructure/ci-templates"
|
|
file: "reuse-lint.yml"
|
|
- project: "revolutionpi/infrastructure/ci-templates"
|
|
file: "package-devel.yml"
|
|
- local: debian/gitlab-ci.yml
|
|
rules:
|
|
- exists:
|
|
- debian/gitlab-ci.yml
|
|
|
|
run_tests:
|
|
stage: test
|
|
image: python:3.11-bookworm
|
|
script:
|
|
- apt-get update
|
|
- apt-get -y install dbus libgirepository1.0-dev
|
|
- dbus-uuidgen --ensure=/etc/machine-id
|
|
- pip install -r requirements.txt
|
|
- PYTHONPATH=src dbus-run-session -- pytest -v --junitxml=report.xml --cov=src --cov-report term --cov-report xml:coverage.xml
|
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
|
artifacts:
|
|
reports:
|
|
junit: ${CI_PROJECT_DIR}/report.xml
|
|
coverage_report:
|
|
coverage_format: cobertura
|
|
path: coverage.xml
|