@@ -3,7 +3,7 @@ name: Conda-based pytest
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build -linux :
6
+ test -linux :
7
7
runs-on : ubuntu-latest
8
8
9
9
strategy :
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
22
+
22
23
- name : Install dependencies
23
24
run : |
24
25
# Set up conda
@@ -31,18 +32,36 @@ jobs:
31
32
32
33
# Install test tools
33
34
conda install pip coverage pytest
34
- conda install -c conda-forge pytest-cov
35
+ pip install coveralls
35
36
36
37
# Install python-control dependencies
37
38
conda install numpy matplotlib scipy
38
39
if [[ '${{matrix.slycot}}' == 'conda' ]]; then
39
40
conda install -c conda-forge slycot
40
41
fi
42
+
41
43
- name : Test with pytest
42
44
env :
43
45
PYTHON_CONTROL_ARRAY_AND_MATRIX : ${{ matrix.array-and-matrix }}
44
46
run : |
45
47
source $CONDA/bin/activate test-environment
46
48
# Use xvfb-run instead of pytest-xvfb to get proper mpl backend
49
+ # Use coverage instead of pytest-cov to get .coverage file
47
50
# See https://github.com/python-control/python-control/pull/504
48
- xvfb-run --auto-servernum pytest control/tests
51
+ xvfb-run --auto-servernum coverage run -m pytest control/tests
52
+
53
+ - name : Coveralls parallel
54
+ # https://github.com/coverallsapp/github-action
55
+ uses : AndreMiras/coveralls-python-action@develop
56
+ with :
57
+ parallel : true
58
+
59
+ coveralls :
60
+ name : coveralls completion
61
+ needs : test-linux
62
+ runs-on : ubuntu-latest
63
+ steps :
64
+ - name : Coveralls Finished
65
+ uses : AndreMiras/coveralls-python-action@develop
66
+ with :
67
+ parallel-finished : true
0 commit comments