Add gating

This commit is contained in:
Lukáš Zachar 2025-10-10 14:57:59 +02:00 committed by Lumir Balhar
parent ea843faeef
commit 3e8767860a
2 changed files with 16 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,11 +1,21 @@
discover:
- name: Smoke-tests
how: shell
dist-git-source: true
tests:
- name: python-import-test
test: python3.14 -c 'import pytest'
require:
- python3.14-pytest
duration: 1m
- name: unit
test: |
cd $(dirname $TMT_SOURCE_DIR/pytest*/testing)
pip-3.14 install pygments>=2.7.2 hypothesis>=3.56 xmlschema
pytest-3.14 testing/ -k 'not test_cmdline_python_namespace_package and not test_syspath_prepend_with_namespace_packages'
require:
- python3.14-pip
- python3.14-pytest
execute:
how: tmt