File tree Expand file tree Collapse file tree 7 files changed +40
-3
lines changed Expand file tree Collapse file tree 7 files changed +40
-3
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ dynamic_context = test_function
3
+ omit = fortls/__init__.py
Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ [push, pull_request]
4
5
# Allows you to run this workflow manually from the Actions tab
5
6
# workflow_dispatch:
6
7
27
28
run : pytest -v
28
29
29
30
- name : Lint
30
- run : black --diff --check --verbose .
31
+ run : black --diff --check --verbose .
32
+
33
+ coverage :
34
+ runs-on : ubuntu-latest
35
+
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+ - uses : actions/setup-python@v2
39
+ with :
40
+ python-version : " 3.10"
41
+
42
+ - name : Coverage report
43
+ run : |
44
+ pip install -r test_requirements.txt
45
+ pytest --cov=fortls --cov-report=xml
46
+
47
+ - name : Upload coverage to Codecov
48
+ uses : codecov/codecov-action@v2
49
+ with :
50
+ token : ${{ secrets.CODECOV_TOKEN }}
51
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ docs/fortls_changes.md
10
10
* .o
11
11
* .mod
12
12
* .smod
13
- * .log
13
+ * .log
14
+
15
+ .coverage
Original file line number Diff line number Diff line change 1
1
# CHANGELONG
2
2
3
+ ## Unreleased
4
+
5
+ ### Added
6
+
7
+ - Added coverage metric for Codecov
8
+
3
9
## 2.0.1
4
10
5
11
### Added
Original file line number Diff line number Diff line change
1
+ [flake8]
2
+ max-line-length = 88
3
+ extend-ignore = E203,E722
Original file line number Diff line number Diff line change 34
34
"Natural Language :: English" ,
35
35
"Programming Language :: Python" ,
36
36
"Programming Language :: Python :: 3" ,
37
+ "Programming Language :: Python :: 3.7" ,
37
38
"Programming Language :: Python :: 3.8" ,
38
39
"Programming Language :: Python :: 3.9" ,
39
40
"Programming Language :: Python :: 3.10" ,
Original file line number Diff line number Diff line change 1
1
black
2
2
pytest
3
+ pytest-cov
You can’t perform that action at this time.
0 commit comments