File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,21 @@ jobs:
26
26
auto-activate-base : false
27
27
28
28
- name : Install mvesuvio package
29
- run : pip install .
30
-
31
- - name : Install coverage
32
- run : pip install coverage[toml]
29
+ # The editable flag is necessary for coverage to find the src/ files
30
+ run : pip install -e .
33
31
34
32
# Runs Unit tests
35
33
- name : Run mvesuvio analysis unit tests
36
34
run : |
37
- coverage run --debug=trace - m unittest discover -s ./tests/unit
35
+ coverage run -m unittest discover -s ./tests/unit
38
36
coverage report
39
37
40
- - name : Coverage version
38
+ # Send coverage report to Coveralls
39
+ - name : Send coverage report to Coveralls
40
+ env :
41
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
41
42
run : |
42
- coverage --version
43
-
44
- # # Send coverage report to Coveralls
45
- # - name: Send coverage report to Coveralls
46
- # env:
47
- # COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
48
- # run: |
49
- # coveralls --service=github-actions
43
+ coveralls --service=github-actions
50
44
51
45
# # Runs System tests
52
46
# - name: Run mvesuvio analysis system tests
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ dependencies:
9
9
- flake8
10
10
- conda-wrappers
11
11
- pre-commit==2.15 # review this
12
- # - coverage
13
12
- coveralls
14
13
- mantid
15
14
- matplotlib
@@ -18,3 +17,4 @@ dependencies:
18
17
- mock
19
18
- pytest
20
19
- jacobi==0.4.2 # pinned until newer versions functionality confirmed
20
+ - coverage
You can’t perform that action at this time.
0 commit comments