From cb84b8446a0ee70ba7bb18fc9e70fce56048cf41 Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:31:41 +0100 Subject: [PATCH] ci: Rebuild the `hugr` executable without extension inference before pytest (#1309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com> --- .pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b91fcaa9e..78b9baff7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -85,7 +85,10 @@ repos: - id: py-test name: pytest description: Run python tests - entry: sh -c "poetry install && poetry run pytest" + # We need to rebuild `hugr-cli` without the `extension_inference` feature + # to avoid test errors. + # TODO: Remove this once the issue is fixed. + entry: sh -c "cargo build -p hugr-cli && poetry install && poetry run pytest" language: system files: \.py$ pass_filenames: false