Merge pull request #3219 from davidhewitt/pypy-310-ffi
ci: fail ffi-check on pypy failures
This commit is contained in:
commit
d3bd82c6f2
|
@ -122,7 +122,7 @@ jobs:
|
|||
|
||||
- uses: dorny/paths-filter@v2
|
||||
# pypy 3.7 and 3.8 are not PEP 3123 compliant so fail checks here
|
||||
if: ${{ inputs.rust == 'stable' && inputs.python-version != 'pypy-3.7' && inputs.python-version != 'pypy-3.8' }}
|
||||
if: ${{ inputs.rust == 'stable' && inputs.python-version != 'pypy3.7' && inputs.python-version != 'pypy3.8' }}
|
||||
id: ffi-changes
|
||||
with:
|
||||
base: ${{ github.event.pull_request.base.ref || github.event.merge_group.base_ref }}
|
||||
|
@ -136,9 +136,9 @@ jobs:
|
|||
|
||||
- name: Run pyo3-ffi-check
|
||||
run: nox -s ffi-check
|
||||
# Allow failure on PyPy for now
|
||||
continue-on-error: ${{ startsWith(inputs.python-version, 'pypy') }}
|
||||
if: ${{ steps.ffi-changes.outputs.changed == 'true' && inputs.rust == 'stable' && inputs.python-version != 'pypy-3.7' && inputs.python-version != 'pypy-3.8' }}
|
||||
# pypy 3.7 and 3.8 are not PEP 3123 compliant so fail checks here, nor
|
||||
# is pypy 3.9 on windows
|
||||
if: ${{ steps.ffi-changes.outputs.changed == 'true' && inputs.rust == 'stable' && inputs.python-version != 'pypy3.7' && inputs.python-version != 'pypy3.8' && !(inputs.python-version == 'pypy3.9' && contains(inputs.os, 'windows')) }}
|
||||
|
||||
|
||||
- name: Test cross compilation
|
||||
|
|
|
@ -276,9 +276,9 @@ pub struct PyTypeObject {
|
|||
pub tp_finalize: Option<object::destructor>,
|
||||
#[cfg(Py_3_8)]
|
||||
pub tp_vectorcall: Option<super::vectorcallfunc>,
|
||||
#[cfg(any(all(PyPy, Py_3_8), all(not(PyPy), Py_3_8, not(Py_3_9))))]
|
||||
#[cfg(any(all(PyPy, Py_3_8, not(Py_3_10)), all(not(PyPy), Py_3_8, not(Py_3_9))))]
|
||||
pub tp_print: Option<printfunc>,
|
||||
#[cfg(PyPy)]
|
||||
#[cfg(all(PyPy, not(Py_3_10)))]
|
||||
pub tp_pypy_flags: std::os::raw::c_long,
|
||||
#[cfg(py_sys_config = "COUNT_ALLOCS")]
|
||||
pub tp_allocs: Py_ssize_t,
|
||||
|
|
Loading…
Reference in New Issue