diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39f7dd4..b7013a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,8 +128,21 @@ jobs: name: cibw-sdist path: sdist - - name: Ensure Ninja not present on the system - run: if which ninja; then false; fi + - name: Remove ninja + shell: bash + run: | + # Remove ninja + set -euxo pipefail + # https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70 + for TOOL in ninja-build ninja samu; do + while which ${TOOL}; do + if [ "$RUNNER_OS" == "Windows" ]; then + rm -f "$(which ${TOOL})" + else + sudo rm -f $(which -a ${TOOL}) + fi + done + done - name: Install SDist run: pip install --no-binary=ninja $(ls sdist/*.tar.gz)[test] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13e9553..8b36b8f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.9" + rev: "v0.9.10" hooks: - id: ruff args: [--fix, --show-fixes] @@ -33,7 +33,7 @@ repos: additional_dependencies: ["validate-pyproject-schema-store[all]>=2024.10.21"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.31.2" + rev: "0.31.3" hooks: - id: check-dependabot - id: check-github-workflows