From 0022e1863d8d9769378ebfb56695bdbf55f118b9 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Fri, 25 Mar 2022 01:32:08 -0400 Subject: [PATCH] cygwin CI: work around gcovr bug Due to https://github.com/gcovr/gcovr/pull/576 it is not possible to `pip install gcovr` and have it work. It is possible, but not ideal, to install the cygwin gcovr package, which is unmaintained and built for python36 while only depending on python39. This is of course not a problem on the other CI jobs, where we either install it from a distro repository that ensures it is stable and backports patches, or simply tests that the resulting image passes tests before baking it as a CI images update. gcovr upstream isn't sure when they are going to release a new version that fixes this bug. There is a new feature release scheduled "soon". --- .github/workflows/cygwin.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index da048b2df..173068a9c 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -71,6 +71,12 @@ jobs: vala zlib-devel + - name: work around gcovr bug https://github.com/gcovr/gcovr/pull/576 + run: | + export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32 + python3 -m pip --disable-pip-version-check install 'jinja2<3.1.0' + shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}' + - name: Run pip run: | export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32