pyproject-rpm-macros/plan.fmf
Lukáš Zachar 7f6b8131e3 CI: Drop STI and use tmt
Resolves: rhbz#2383022
(cherry picked from Fedora commit 84e6d30255)
2025-12-01 16:42:40 +01:00

133 lines
3.9 KiB
Plaintext

execute:
how: tmt
discover:
- name: same_repo
how: shell
tests:
- name: pytest
path: /tests
test: ./mocktest.sh python-pytest
- name: entrypoints
path: /tests
test: ./mocktest.sh python-entrypoints
- name: pluggy
path: /tests
test: ./mocktest.sh python-pluggy
# uses poetry backend, no poetry in EL 9
# awaiting volunteers in https://bugzilla.redhat.com/2049649
#- name: clikit
# path: /tests
# test: ./mocktest.sh python-clikit
- name: distroinfo
path: /tests
test: ./mocktest.sh python-distroinfo
- name: tldr
path: /tests
test: ./mocktest.sh tldr
- name: openqa_client
path: /tests
test: ./mocktest.sh python-openqa_client
- name: httpbin
path: /tests
test: ./mocktest.sh python-httpbin
- name: ldap
path: /tests
test: ./mocktest.sh python-ldap
- name: isort
path: /tests
test: ./mocktest.sh python-isort
- name: mistune
path: /tests
test: ./mocktest.sh python-mistune
- name: setuptools_scm
path: /tests
test: ./mocktest.sh python-setuptools_scm
# awaiting jupyter-client in EPEL 9
#- name: ipykernel
# path: /tests
# test: ./mocktest.sh python-ipykernel
- name: zope
path: /tests
test: ./mocktest.sh python-zope-event
- name: django
path: /tests
test: ./mocktest.sh python-django
- name: printrun
path: /tests
test: ./mocktest.sh printrun
- name: dns_lexicon
path: /tests
test: ./mocktest.sh python-dns-lexicon
- name: flit_core
path: /tests
test: ./mocktest.sh python-flit-core
- name: poetry_core
path: /tests
test: ./mocktest.sh python-poetry-core
- name: setuptools
path: /tests
test: ./mocktest.sh python-setuptools
# too many missing deps in EPEL 9 (pre-commit, sphinx-issues, pallets-sphinx-themes)
#- name: markupsafe
# path: /tests
# test: ./mocktest.sh python-markupsafe
- name: getmac
path: /tests
test: ./mocktest.sh python-getmac
- name: userpath
path: /tests
test: ./mocktest.sh python-userpath
# No matching package to install: 'python3dist(pytest-cov)' [testing]
# No matching package to install: 'python3dist(pytest-regressions)' [testing]
# No matching package to install: 'python3dist(linkify-it-py)' [linkify]
# No matching package to install: 'python3dist(mdurl)'
#- name: markdown_it_py
# path: /tests
# test: ./mocktest.sh python-markdown-it-py
- name: double_install
path: /tests
test: ./mocktest.sh double-install
- name: fake_requirements
path: /tests
test: ./mocktest.sh fake-requirements
- name: virtualenv
path: /tests
test: ./mocktest.sh python-virtualenv
- name: coverage_pth
path: /tests
test: ./mocktest.sh python-coverage-pth
- name: pello
path: /tests
test: ./mocktest.sh python-pello
- name: pello_with_options
path: /tests
test: ./mocktest.sh python-pello --with options
- name: escape_paths
path: /tests
test: ./mocktest.sh escape_paths
- name: config-settings-test
path: /tests
test: ./mocktest.sh config-settings-test
- name: isort_c9s
path: /tests
test: NAME="CentOS Stream" VERSION_ID=9 ./mocktest.sh python-isort
- name: mistune_311
path: /tests
test: ./mocktest.sh python-mistune --define 'python3_pkgversion 3.11'
- name: mistune_312
path: /tests
test: ./mocktest.sh python-mistune --define 'python3_pkgversion 3.12'
prepare:
- name: Install dependencies
how: install
package:
- 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
- 'https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm'
- mock
- rpmdevtools
- rpm-build
- dnf
- name: Update packages
how: shell
script: dnf upgrade -y