From 7c07bd865f2fa802337b0539191d348de7526c1b Mon Sep 17 00:00:00 2001 From: mulhern Date: Sun, 27 Feb 2022 10:39:45 -0500 Subject: [PATCH] Add gating tests --- gating.yaml | 7 +++++++ python-justbases.spec | 8 ++++---- tests/tests.yml | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 gating.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..282e16b --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/python-justbases.spec b/python-justbases.spec index 007aac5..cc7832c 100644 --- a/python-justbases.spec +++ b/python-justbases.spec @@ -2,7 +2,7 @@ %global srcname justbases Name: python-%{srcname} Version: 0.15 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A small library for precise conversion between arbitrary bases License: LGPLv2+ @@ -36,9 +36,6 @@ rm -rf justbases.egg-info %install %py3_install -%check -PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest discover --verbose tests/test_deterministic - %files -n python3-%{srcname} %license LICENSE %doc README.rst @@ -46,6 +43,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m unittest discover --verb %{python3_sitelib}/justbases-%{version}-*.egg-info %changelog +* Sun Feb 27 2022 mulhern - 0.15-7 +- Add gating tests + * Fri Jan 21 2022 Fedora Release Engineering - 0.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..1fd9033 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: ./ + run: python -m unittest discover --verbose source/tests/test_deterministic