From 26493fda2591c52264d21738fe2197594f47a314 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 22 Jun 2023 11:49:21 +0200 Subject: [PATCH] Update git index to assume test-requirements.txt didn't change --- cibuildwheel.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cibuildwheel.toml b/cibuildwheel.toml index e4390c4b..462e436d 100644 --- a/cibuildwheel.toml +++ b/cibuildwheel.toml @@ -81,7 +81,10 @@ before-all = [ "apk add --no-cache clang", ] before-test = [ - "sed -i -e '/ruff/d' {project}/mypy/test-requirements.txt", - "pip install -r {project}/mypy/test-requirements.txt", + "cd {project}/mypy", + "sed -i -e '/ruff/d' test-requirements.txt", + "git update-index --assume-unchanged test-requirements.txt", + "pip install -r test-requirements.txt", + "cd ..", ] environment = { MYPYC_OPT_LEVEL="3", MYPYC_DEBUG_LEVEL="0", CC="clang" }