Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing for python 3.13 #633

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ jobs:
os_version: "15.7"
- toxenv: metadata
os_version: "15.7"
- toxenv: python
os_version: "15.7"
- toxenv: repository
os_version: "15.7"
- toxenv: all
Expand Down
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
Loading