File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,13 @@ jobs:
21
21
--ignore=pymc3/tests/test_distributions_timeseries.py
22
22
--ignore=pymc3/tests/test_examples.py
23
23
--ignore=pymc3/tests/test_gp.py
24
+ --ignore=pymc3/tests/test_mixture.py
24
25
--ignore=pymc3/tests/test_parallel_sampling.py
25
26
--ignore=pymc3/tests/test_posteriors.py
26
27
--ignore=pymc3/tests/test_quadpotential.py
27
28
--ignore=pymc3/tests/test_random.py
28
29
--ignore=pymc3/tests/test_sampling.py
29
- --ignore=pymc3/tests/test_shape_handling
30
+ --ignore=pymc3/tests/test_shape_handling.py
30
31
--ignore=pymc3/tests/test_shared.py
31
32
--ignore=pymc3/tests/test_smc.py
32
33
--ignore=pymc3/tests/test_updates.py
44
45
- |
45
46
pymc3/tests/test_examples.py
46
47
pymc3/tests/test_gp.py
48
+ pymc3/tests/test_mixture.py
47
49
pymc3/tests/test_posteriors.py
48
50
pymc3/tests/test_quadpotential.py
49
51
- |
Original file line number Diff line number Diff line change @@ -31,14 +31,19 @@ repos:
31
31
- repo : local
32
32
hooks :
33
33
- id : watermark
34
- name : Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
35
- types : [jupyter]
34
+ args : [--negate, --multiline]
36
35
entry : ' %load_ext watermark.*%watermark -n -u -v -iv -w'
37
36
language : pygrep
38
- args : [--negate, --multiline]
39
37
minimum_pre_commit_version : 2.8.0
38
+ name : Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
39
+ types : [jupyter]
40
40
- id : check-toc
41
+ entry : python scripts/check_toc_is_complete.py
42
+ language : python
41
43
name : Check all notebooks appear in table of contents
42
44
types : [jupyter]
43
- entry : python scripts/check_toc_is_complete.py
45
+ - id : check-no-tests-are-ignored
46
+ entry : python scripts/check_all_tests_are_covered.py
47
+ files : ^\.github/workflows/pytest\.yml$
44
48
language : python
49
+ name : Check no tests are ignored
Original file line number Diff line number Diff line change
1
+ from pathlib import Path
2
+
3
+ import re
4
+
5
+ if __name__ == "__main__" :
6
+ pytest_ci_job = Path (".github" ) / "workflows/pytest.yml"
7
+ txt = pytest_ci_job .read_text ()
8
+ ignored_tests = set (re .findall (r"(?<=--ignore=)(pymc3/tests.*\.py)" , txt ))
9
+ non_ignored_tests = set (re .findall (r"(?<!--ignore=)(pymc3/tests.*\.py)" , txt ))
10
+ assert (
11
+ ignored_tests <= non_ignored_tests
12
+ ), f"The following tests are ignored by the first job but not run by the others: { ignored_tests .difference (non_ignored_tests )} "
You can’t perform that action at this time.
0 commit comments