Skip to content

Commit

Permalink
Add testing for python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller authored and dcermak committed Nov 4, 2024
1 parent 581060b commit 0e6ae07
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
8 changes: 7 additions & 1 deletion bci_tester/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,22 @@ def create_BCI(
build_tag="bci/python:3.12", available_versions=["15.6", "tumbleweed"]
)

PYTHON313_CONTAINER = create_BCI(
build_tag="bci/python:3.13", available_versions=["15.7"]
)

PYTHON_CONTAINERS = [
PYTHON36_CONTAINER,
PYTHON310_CONTAINER,
PYTHON311_CONTAINER,
PYTHON312_CONTAINER,
PYTHON313_CONTAINER,
]

PYTHON_WITH_PIPX_CONTAINERS = [
PYTHON310_CONTAINER,
PYTHON311_CONTAINER,
PYTHON312_CONTAINER,
PYTHON313_CONTAINER,
]

RUBY_25_CONTAINER = create_BCI(
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ markers = [
'python_3.10',
'python_3.11',
'python_3.12',
'python_3.13',
'python_3.6',
'registry_2.8',
'ruby_2.5',
Expand Down
10 changes: 2 additions & 8 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@
from bci_tester.data import POSTFIX_CONTAINERS
from bci_tester.data import POSTGRESQL_CONTAINERS
from bci_tester.data import PROMETHEUS_CONTAINERS
from bci_tester.data import PYTHON36_CONTAINER
from bci_tester.data import PYTHON310_CONTAINER
from bci_tester.data import PYTHON311_CONTAINER
from bci_tester.data import PYTHON312_CONTAINER
from bci_tester.data import PYTHON_CONTAINERS
from bci_tester.data import RUBY_25_CONTAINER
from bci_tester.data import RUBY_33_CONTAINER
from bci_tester.data import RUST_CONTAINERS
Expand Down Expand Up @@ -158,10 +155,6 @@ def _get_container_label_prefix(
(NODEJS_18_CONTAINER, "nodejs", ImageType.LANGUAGE_STACK),
(NODEJS_20_CONTAINER, "nodejs", ImageType.LANGUAGE_STACK),
(NODEJS_22_CONTAINER, "nodejs", ImageType.LANGUAGE_STACK),
(PYTHON36_CONTAINER, "python", ImageType.LANGUAGE_STACK),
(PYTHON310_CONTAINER, "python", ImageType.LANGUAGE_STACK),
(PYTHON311_CONTAINER, "python", ImageType.LANGUAGE_STACK),
(PYTHON312_CONTAINER, "python", ImageType.LANGUAGE_STACK),
(RUBY_25_CONTAINER, "ruby", ImageType.LANGUAGE_STACK),
(RUBY_33_CONTAINER, "ruby", ImageType.LANGUAGE_STACK),
(INIT_CONTAINER, "init", ImageType.OS),
Expand All @@ -170,6 +163,7 @@ def _get_container_label_prefix(
(PHP_8_FPM, "php-fpm", ImageType.LANGUAGE_STACK),
(NGINX_CONTAINER, "nginx", ImageType.APPLICATION),
]
+ [(c, "python", ImageType.LANGUAGE_STACK) for c in PYTHON_CONTAINERS]
+ [(c, "base-fips", ImageType.OS) for c in BASE_FIPS_CONTAINERS]
+ [
(container_pcp, "pcp", ImageType.APPLICATION)
Expand Down
4 changes: 4 additions & 0 deletions tests/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def test_python_version(auto_container):
PYTHON_WITH_PIPX_CONTAINERS,
indirect=["container_per_test"],
)
@pytest.mark.xfail(
OS_VERSION in ("15.7",),
reason="https://bugzilla.suse.com/show_bug.cgi?id=1232537",
)
def test_pipx(container_per_test):
"""Test that we can install xkcdpass via :command:`pipx`."""
container_per_test.connection.check_output("pipx install xkcdpass")
Expand Down

0 comments on commit 0e6ae07

Please sign in to comment.