Skip to content

Commit 6b7f8f7

Browse files
committed
move lightning to extras, disable keras tests
we need TF 1.x but it does not work on python 3.9+
1 parent b9f1be8 commit 6b7f8f7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20-
- python-version: '3.12'
20+
- python-version: '3.10'
2121
tox-env: 'mypy'
22-
- python-version: '3.12'
22+
- python-version: '3.10'
2323
tox-env: 'docs'
2424
- python-version: '3.9'
2525
tox-env: 'py39'

tox.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,18 @@ deps=
2828
{[base]deps}
2929
ipython
3030
pandas
31+
sklearn-crfsuite
3132
commands=
32-
; to install lightning numpy and Cython must be installed first
33-
pip install Cython
34-
pip install joblib "sklearn-contrib-lightning >= 0.4" --no-binary sklearn-contrib-lightning
3533
pip install -e .
3634
py.test --doctest-modules \
3735
--ignore eli5/xgboost.py \
3836
--ignore eli5/lightgbm.py \
3937
--ignore eli5/catboost.py \
4038
--ignore eli5/keras \
41-
--ignore eli5/sklearn_crfsuite \
39+
--ignore eli5/lightning.py \
4240
--ignore eli5/formatters/image.py \
4341
--ignore tests/utils_image.py \
4442
--cov=eli5 --cov-report=html --cov-report=term {posargs: eli5 tests}
45-
; TODO once sklearn-crfsuite is compatible, stop ignoring eli5/sklearn_crfsuite
4643

4744

4845
[testenv:py310-extra]
@@ -52,11 +49,14 @@ deps=
5249
xgboost
5350
lightgbm != 2.0.5, != 2.0.6
5451
catboost
55-
tensorflow
56-
keras
52+
# tensorflow
53+
# keras
5754
matplotlib
5855
Pillow
5956
commands=
57+
; to install lightning numpy and Cython must be installed first
58+
pip install Cython
59+
pip install joblib "sklearn-contrib-lightning >= 0.4" --no-binary sklearn-contrib-lightning
6060
pip install -e .
6161
; run tests for extra dependencies
6262
py.test --doctest-modules \
@@ -68,15 +68,14 @@ commands=
6868
--ignore tests/test_sklearn_vectorizers.py \
6969
--ignore tests/test_utils.py \
7070
--ignore eli5/lightning.py \
71-
--ignore eli5/sklearn_crfsuite \
71+
--ignore eli5/keras \
7272
--cov=eli5 --cov-report=html --cov-report=term {posargs: eli5 tests}
7373

7474

7575
[testenv:py310-nodeps]
7676
deps=
7777
{[base]deps}
7878
commands=
79-
; without lightning as it is optional
8079
pip install -e .
8180
py.test --doctest-modules \
8281
--ignore eli5/lightning.py \
@@ -93,7 +92,7 @@ commands=
9392

9493

9594
[testenv:mypy]
96-
basepython=python3.12
95+
basepython=python3.10
9796
deps=
9897
{[testenv]deps}
9998
mypy == 0.750
@@ -103,6 +102,7 @@ commands=
103102

104103

105104
[testenv:docs]
105+
basepython=python3.10
106106
deps=
107107
mock==1.0.1
108108
pillow==8.3.1

0 commit comments

Comments
 (0)