From 5f40c95771273cd3c93b3c217d55230fbc69e7e1 Mon Sep 17 00:00:00 2001 From: darrylong Date: Tue, 25 Jun 2024 17:11:05 +0800 Subject: [PATCH] Update package steps and pytest step --- .github/workflows/python-package.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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