Skip to content

Commit

Permalink
Update package steps and pytest step
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylong committed Jun 25, 2024
1 parent 483b9c6 commit 5f40c95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -83,4 +83,4 @@ jobs:
- name: Test with pytest
run: |
pytest --cov=cornac
python${{ matrix.versions.python }} -m pytest --cov=cornac

0 comments on commit 5f40c95

Please sign in to comment.