diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b28aad59..d278687e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -64,16 +64,16 @@ jobs: - name: Install numpy ${{ matrix.versions.numpy }}, scipy ${{ matrix.versions.scipy }} run: pip install numpy==${{ matrix.versions.numpy }} scipy==${{ matrix.versions.scipy }} - - - name: Display numpy version - run: python${{ matrix.versions.python }} -c "import numpy; print(numpy.__version__)" - + - name: Install other dependencies run: | pip install Cython pytest pytest-cov flake8 python${{ matrix.versions.python }} setup.py build_ext -j${{ steps.cpu-cores.outputs.count }} pip install -e .[tests] + - name: Display numpy version + run: python${{ matrix.versions.python }} -c "import numpy; print(numpy.__version__)" + - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names @@ -83,4 +83,4 @@ jobs: - name: Test with pytest run: | - pytest --cov=cornac + python${{ matrix.versions.python }} -m pytest --cov=cornac