Skip to content

Commit 8ab39d2

Browse files
authored
Update tested GraalPy version in CI (PyO3#4867)
* Add GraalPy 24.1 version to CI * Skip failing test on GraalPy
1 parent 903afcd commit 8ab39d2

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
- name: Install nox
3939
run: python -m pip install --upgrade pip && pip install nox
4040

41+
- if: inputs.python-version == 'graalpy24.1'
42+
name: Install GraalPy virtualenv (only GraalPy 24.1)
43+
run: python -m pip install 'git+https://github.com/oracle/graalpython#egg=graalpy_virtualenv_seeder&subdirectory=graalpy_virtualenv_seeder'
44+
4145
- name: Install Rust toolchain
4246
uses: dtolnay/rust-toolchain@master
4347
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ jobs:
255255
"pypy3.9",
256256
"pypy3.10",
257257
"graalpy24.0",
258+
"graalpy24.1",
258259
]
259260
platform:
260261
[

pytests/tests/test_comparisons.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Type, Union
22

3+
import sys
34
import pytest
45
from pyo3_pytests.comparisons import (
56
Eq,
@@ -28,6 +29,11 @@ def __ne__(self, other: Self) -> bool:
2829
return NotImplemented
2930

3031

32+
@pytest.mark.skipif(
33+
sys.implementation.name == "graalpy"
34+
and __graalpython__.get_graalvm_version().startswith("24.1"), # noqa: F821
35+
reason="Bug in GraalPy 24.1",
36+
)
3137
@pytest.mark.parametrize(
3238
"ty", (Eq, EqDerived, PyEq), ids=("rust", "rust-derived", "python")
3339
)

0 commit comments

Comments
 (0)