diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3bade419d..468dc9029 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -178,7 +178,14 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install -r requirements.txt - python -m pip install mypy jax jaxlib torch - python setup.py install + python -m pip install mypy + python -m pip install . + - name: "Install additional dependencies" + run: python -m pip install jax jaxlib torch + if: ${{ matrix.python-version != '3.7' }} - name: "Run mypy" run: python -m mypy --install-types --non-interactive pysr + if: ${{ matrix.python-version != '3.7' }} + - name: "Run compatible mypy" + run: python -m mypy --ignore-missing-imports pysr + if: ${{ matrix.python-version == '3.7' }}