From 39a365a53eb664afcc49cbf28e38efc14850e9be Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Fri, 8 Mar 2024 14:55:42 +0000 Subject: [PATCH] [ci] fix test-pyinstaller broken after #180 merged we need to export FREETYPEPY_BUNDLE_FT to ensure the correct build deps (e.g. cmake) are installed. Also run pytest --pyargs to ensure that the installed freetype is tested, not the one found in the current directory. --- .github/workflows/ci.yml | 7 +++++-- freetype/__pyinstaller/tests/__init__.py | 0 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 freetype/__pyinstaller/tests/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52fee14..4f04253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,7 +115,10 @@ jobs: with: python-version: '3.9' - name: Test pyinstaller hook + env: + FREETYPEPY_BUNDLE_FT: yes + PYTHON_ARCH: 64 run: | pip install pytest psutil pyinstaller>=4 - FREETYPEPY_BUNDLE_FT=yes PYTHON_ARCH=64 pip install . - pytest -v freetype/__pyinstaller/tests + pip install . + pytest -v --pyargs freetype.__pyinstaller.tests diff --git a/freetype/__pyinstaller/tests/__init__.py b/freetype/__pyinstaller/tests/__init__.py new file mode 100644 index 0000000..e69de29