From 6466ab889a18fd2bb7154d9ef4fef5e73be0ecb8 Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Sun, 31 Mar 2024 16:44:31 +0100 Subject: [PATCH] Try to set libclang for ubuntu --- .github/workflows/python.yml | 2 +- test.macos.sh | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a610769..aaf77c0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -40,4 +40,4 @@ jobs: run: | source ./.venv/bin/activate PY_CPPMODEL_LIBCLANG_PATH=/usr/lib/llvm-18/lib/libclang-18.so.1 \ - python -m unittest discover . + python -m unittest discover --verbose . diff --git a/test.macos.sh b/test.macos.sh index b46ce68..261a4ec 100755 --- a/test.macos.sh +++ b/test.macos.sh @@ -1,11 +1,12 @@ #!/usr/bin/env bash -set -x - - +# Virtual environment setup python3 -m venv .venv # Create a Python virtual env source ./.venv/bin/activate # Activate the virtual env for bash by source. +# Type checks python -m mypy *.py --check-untyped-defs # Run mypy to check type hints + +Unit tests PY_CPPMODEL_LIBCLANG_PATH=/Library/Developer/CommandLineTools/usr/lib/libclang.dylib \ -python -m unittest discover . # Run tests +python -m unittest discover --verbose . # Run tests