python-jwcrypto/tests/tests.yml
Sudhir Menon 734ee87c6f Added gating.yaml and tests for python-jwcrypto
Signed-off-by: Sudhir Menon <sumenon@redhat.com>
2024-06-28 15:36:31 +05:30

27 lines
681 B
YAML

---
- hosts: localhost
tags:
- classic
pre_tasks:
- name: Enable CRB for python3-pytest on 1minutetip
ini_file:
path: /etc/yum.repos.d/rhel.repo
section: rhel-CRB
option: enabled
value: "1"
create: no
ignore_errors: yes
roles:
- role: standard-test-source
- role: standard-test-basic
required_packages:
- python3-jwcrypto
- python3-pytest
tests:
- unittests:
dir: "source"
# remove jwcrypto Python files to run tests with packages code
run: >-
rm -rf jwcrypto/j*.py jwcrypto/__init__.py jwcrypto/__pycache__ &&
python3 -m pytest jwcrypto/test*.py