File tree 9 files changed +29
-24
lines changed 9 files changed +29
-24
lines changed Original file line number Diff line number Diff line change
1
+ [paths]
2
+ # files installed in */site-packages/pyro/ are equivalent to those in pyro/
3
+ source =
4
+ pyro
5
+ */site-packages/pyro
6
+
7
+ [run]
8
+ source = pyro
9
+ # measure the source files from the installed pyro package
10
+ source_pkgs = pyro
11
+
12
+ [report]
13
+ # don't include the test files themselves
14
+ omit =
15
+ */tests/*
16
+ pyro/test.py
Original file line number Diff line number Diff line change 38
38
run : pip install -r ./requirements.txt
39
39
40
40
- name : Install pyro
41
- run : python setup.py install
41
+ run : pip install .
42
42
43
43
- name : Build docs
44
44
run : |
Original file line number Diff line number Diff line change 38
38
pip install flake8
39
39
40
40
- name : Install pyro
41
- run : python setup.py install --user
41
+ run : pip install .
42
42
43
43
- name : Run flake8
44
44
run : flake8 pyro
Original file line number Diff line number Diff line change 34
34
run : pip install -r ./requirements.txt
35
35
36
36
- name : Install pyro
37
- run : python setup.py install
37
+ run : pip install .
38
38
39
39
- name : Build docs
40
40
run : ./deploy_docs_action.sh
44
44
with :
45
45
github_token : ${{ secrets.GITHUB_TOKEN }}
46
46
publish_dir : ./out
47
- keep_files : true
47
+ keep_files : true
Original file line number Diff line number Diff line change 38
38
pip install isort
39
39
40
40
- name : Install pyro
41
- run : python setup.py install --user
41
+ run : pip install .
42
42
43
43
- name : Validate
44
44
run : isort -c pyro
Original file line number Diff line number Diff line change 38
38
pip install pylint
39
39
40
40
- name : Install pyro
41
- run : python setup.py install --user
41
+ run : pip install .
42
42
43
43
- name : Validate
44
44
run : pylint --errors-only pyro pyro/analysis
Original file line number Diff line number Diff line change 41
41
pip install -r requirements.txt
42
42
43
43
- name : Install pyro
44
- run : python setup.py install --user
44
+ run : pip install .
45
45
46
46
- name : Run tests with pytest
47
- run : pytest -v --cov=. --cov-config .coveragerc --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
47
+ run : pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
Original file line number Diff line number Diff line change 41
41
pip install -r requirements.txt
42
42
43
43
- name : Install pyro
44
- run : python setup.py install --user
44
+ run : pip install .
45
45
46
46
- name : Run tests via test.py
47
47
run : ./pyro/test.py
Original file line number Diff line number Diff line change 19
19
if not f .endswith ("inputs.auto" ):
20
20
inputs .append (f .replace ("pyro/" , "" ))
21
21
22
- benchmarks = ["advection/tests/*.h5" ,
23
- "advection_fv4/tests/*.h5" ,
24
- "advection_nonuniform/tests/*.h5" ,
25
- "advection_rk/tests/*.h5" ,
26
- "compressible/tests/*.h5" ,
27
- "compressible/tests/*.h5" ,
28
- "compressible/tests/*.h5" ,
29
- "compressible_fv4/tests/*.h5" ,
30
- "compressible_rk/tests/*.h5" ,
31
- "compressible_sdc/tests/*.h5" ,
32
- "diffusion/tests/*.h5" ,
33
- "incompressible/tests/*.h5" ,
34
- "lm_atm/tests/*.h5" ,
35
- "multigrid/tests/*.h5" ,
36
- "swe/tests/*.h5" ]
22
+ # find all of the benchmark output files
23
+ benchmarks = []
24
+ for path in Path ("pyro" ).glob ("*/tests/*.h5" ):
25
+ benchmarks .append (str (path .relative_to ("pyro" )))
37
26
38
27
setup (name = 'pyro-hydro' ,
39
28
description = 'A python hydrodynamics code for teaching and prototyping' ,
You can’t perform that action at this time.
0 commit comments