File tree Expand file tree Collapse file tree 5 files changed +50
-14
lines changed Expand file tree Collapse file tree 5 files changed +50
-14
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ coverage:
4
4
status :
5
5
project :
6
6
default :
7
- target : 95 %
7
+ target : 90 %
8
8
patch :
9
9
default :
10
- target : 95 %
10
+ target : 90 %
11
11
12
12
comment : false
Original file line number Diff line number Diff line change
1
+ name : Tests dev
2
+
3
+ on :
4
+ schedule :
5
+ # check once a week on mondays
6
+ - cron : ' 0 10 * * 1'
7
+
8
+ jobs :
9
+ tests-dev :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python-version : ["3.10", "3.13"]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up Python ${{ matrix.python-version }}
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : ${{ matrix.python-version }}
22
+
23
+ - name : Install tests dependencies
24
+ run : python -m pip install tox
25
+
26
+ - name : Run tests against scikit-learn dev version
27
+ run : tox -e tests-dev
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ jobs:
22
22
with :
23
23
python-version : ${{ matrix.python-version }}
24
24
25
- - name : install tests dependencies
25
+ - name : Install tests dependencies
26
26
run : python -m pip install tox coverage[toml]
27
27
28
- - name : run Python tests
28
+ - name : Run Python tests
29
29
run : |
30
30
tox -e tests
31
31
coverage xml
Original file line number Diff line number Diff line change
1
+ ase
2
+ parameterized
3
+ pytest
4
+ pytest-cov
5
+ tqdm
Original file line number Diff line number Diff line change @@ -29,22 +29,27 @@ commands =
29
29
check-manifest {toxinidir}
30
30
31
31
[testenv:tests]
32
- description = Runs the tests
32
+ description = Runs tests
33
33
usedevelop = true
34
- changedir = tests
35
- deps =
36
- parameterized
37
- pytest
38
- pytest-cov
39
- tqdm
40
-
34
+ deps = -r tests/requirements.txt
41
35
commands =
42
36
# Run unit tests
43
37
pytest {posargs}
44
38
45
39
# Run documentation tests
46
40
pytest --doctest-modules --pyargs skmatter {posargs}
47
41
42
+ [testenv:tests-dev]
43
+ description = Runs tests against scikit-learn dev version
44
+ deps = -r tests/requirements.txt
45
+ commands_pre =
46
+ python -m pip install \
47
+ --force-reinstall \
48
+ --no-deps \
49
+ git+https://github.com/scikit-learn/scikit-learn.git
50
+ commands =
51
+ pytest {posargs}
52
+
48
53
[testenv:lint]
49
54
description = Checks the code and doc for programmatic and stylistic errors
50
55
skip_install = true
@@ -74,8 +79,7 @@ commands =
74
79
[testenv:docs]
75
80
description = Builds the documentation
76
81
usedevelop = true
77
- deps =
78
- -r docs/requirements.txt
82
+ deps = -r docs/requirements.txt
79
83
# The documentation runs "examples" to produce outputs via sphinx-gallery.
80
84
extras = examples
81
85
commands =
You can’t perform that action at this time.
0 commit comments