File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Expand file tree Collapse file tree 4 files changed +33
-2
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 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
1
black
2
2
pytest
3
+ pytest-cov
You can’t perform that action at this time.
0 commit comments