diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e8d1f830..0b96d31ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,7 +17,6 @@ on: # This is spelt like this to do not ignore the docs/examples/ folder. - '**' - '!docs/**' - - 'docs/examples/**' - '!CHANGELOG.rst' - '!LICENSE' - '!LICENSES/**' @@ -103,10 +102,10 @@ jobs: meson: '~=1.8.0' # Test with Meson master branch. - os: ubuntu-latest - python: '3.12' + python: '3.14' meson: '@git+https://github.com/mesonbuild/meson.git' - os: windows-latest - python: '3.12' + python: '3.14' meson: '@git+https://github.com/mesonbuild/meson.git' steps: diff --git a/tests/test_sdist.py b/tests/test_sdist.py index 2c5198951..70a3e357e 100644 --- a/tests/test_sdist.py +++ b/tests/test_sdist.py @@ -13,7 +13,7 @@ import mesonpy -from .conftest import in_git_repo_context, metadata +from .conftest import MESON_VERSION, in_git_repo_context, metadata def test_meson_build_metadata(sdist_library): @@ -217,9 +217,11 @@ def test_reproducible(package_pure, tmp_path): assert sdist_path_a == sdist_path_b assert tmp_path.joinpath('a', sdist_path_a).read_bytes() == tmp_path.joinpath('b', sdist_path_b).read_bytes() -# ``meson dist`` does not handle tarballs containing symbolic links to absolute -# paths on Python 3.14, see https://github.com/mesonbuild/meson/issues/15142 -@pytest.mark.skipif(sys.version_info >= (3, 14), reason='incompatible Python version') + +# ``meson dist`` before Meson 1.9.2 does not handle tarballs +# containing symbolic links to absolute paths on Python 3.14. +# See https://github.com/mesonbuild/meson/issues/15142 +@pytest.mark.skipif(sys.version_info >= (3, 14) and MESON_VERSION < (1, 9, 2), reason='incompatible Python version') @pytest.mark.filterwarnings('ignore:symbolic link') def test_symlinks(tmp_path, sdist_symlinks): with tarfile.open(sdist_symlinks, 'r:gz') as sdist: