forked from NicolasHug/Surprise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update min versions of dependencies and drop 3.7 (NicolasHug#425)
- Loading branch information
1 parent
c505e10
commit 3a387e1
Showing
9 changed files
with
132 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
Benchmark: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,5 @@ jobs: | |
make html | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: my-artifact | ||
name: the-docs | ||
path: doc/build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# This workflow builds the sdist on 3.8 and then installs that same sdist on | ||
# clean envs from all python versions, then runs tests. | ||
# We also try to replace numpy with oldest-supported-numpy as install-time | ||
# dependency (install-time == installing from the sdist with the .c files | ||
# present). I'm not sure this is the intended use for the package, but this is | ||
# the only way I can find to test on an "old" version of numpy, instead of the | ||
# latest available like the regular `numpy>=X` constraint would do. | ||
|
||
name: Build sdist and test | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
use-oldest-numpy: [true, false] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Force min dep | ||
if: ${{ matrix.use-oldest-numpy}} | ||
run: | | ||
sed -i "s/numpy.*/oldest-supported-numpy/g" requirements.txt | ||
cat requirements*.txt | ||
- name: Build sdist | ||
run: | | ||
set -x | ||
python -m pip install --upgrade pip | ||
pip install -r requirements_dev.txt | ||
pip freeze | ||
python setup.py sdist | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: the-sdist-${{ matrix.use-oldest-numpy }} | ||
path: dist/scikit-surprise-1.1.1.tar.gz | ||
|
||
install-and-test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
use-oldest-numpy : [true, false] | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: the-sdist-${{ matrix.use-oldest-numpy}} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install sdist | ||
run: | | ||
set -x | ||
python -m pip install --upgrade pip | ||
pip install scikit-surprise-1.1.1.tar.gz -v | ||
- name: Pip freeze | ||
run: | | ||
pip freeze | ||
- name: Run unit tests | ||
run: | | ||
pip install pytest pandas | ||
pytest -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
joblib>=0.11 | ||
numpy>=1.11.2 | ||
scipy>=1.0.0 | ||
# Lower bounds for deps are as in scikit-learn in Aug 22, 1.2.dev | ||
joblib>=1.0.0 | ||
numpy>=1.17.3 # also in setup.py | ||
scipy>=1.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Requirements file for development | ||
Cython>=0.24.1 | ||
joblib>=0.11 | ||
numpy>=1.11.2 | ||
# Lower bounds for deps are as in scikit-learn in Aug 22, 1.2.dev | ||
Cython>=0.29.24 | ||
joblib>=1.0.0 | ||
numpy>=1.17.3 # also in setup.py | ||
scipy>=1.3.2 | ||
pandas | ||
pytest>=3.0.3 | ||
scipy>=1.0.0 | ||
sphinx>=1.4.9 | ||
pytest | ||
sphinx | ||
sphinx_rtd_theme | ||
sphinxcontrib-bibtex | ||
sphinxcontrib-spelling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file=README.md | ||
description_file=README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters