From 18ee13c6c174120d2b2401cfcb83703802279a4c Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Fri, 16 Feb 2024 11:04:57 +0000 Subject: [PATCH] Fix the ibm-fms install for mypy Install ibm-fms with -I so that the package is installed from the main branch, which includes the py.typed file required for mypy testing. Signed-off-by: Andrea Frittoli --- .github/workflows/mypy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index d64d1958..6081a268 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -45,7 +45,9 @@ jobs: - name: Test with mypy run: | # Install ibm-fms from the main branch for testing purposes - pip install ibm-fms@git+https://github.com/foundation-model-stack/foundation-model-stack@main + # Use -I to ignore the existing install and actually install + # the version on main + pip install -I ibm-fms@git+https://github.com/foundation-model-stack/foundation-model-stack@main # No type stubs available for "fire" and "transformers" mypy --exclude fms_to_hf.py --exclude main_training.py . @@ -55,4 +57,4 @@ jobs: uses: actions/cache/save@v4 with: path: ./.venv/ - key: ${{ steps.cache-venv-restore.outputs.cache-primary-key }} \ No newline at end of file + key: ${{ steps.cache-venv-restore.outputs.cache-primary-key }}