Skip to content

Commit e012b79

Browse files
authored
Merge pull request #78 from bcdev/yogesh-xxx-add-codecov
Add codecov to frontend and backend CI
2 parents 4ed94eb + 5422d3e commit e012b79

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/backend-ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ jobs:
2121
shell: bash -l {0}
2222
run: |
2323
cd chartlets.py
24-
pytest
24+
pytest --cov=chartlets.py --cov-report=xml
25+
26+
- name: Upload coverage reports to Codecov
27+
uses: codecov/codecov-action@v4
28+
with:
29+
directory: chartlets.py/
30+
verbose: true
31+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/frontend-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
cd chartlets.js/packages/lib
3333
npm run test
3434
35+
- name: Lib coverage
36+
run: |
37+
cd chartlets.js/packages/lib
38+
npm run coverage
39+
40+
- name: Upload coverage reports for lib to Codecov
41+
uses: codecov/codecov-action@v4
42+
with:
43+
directory: chartlets.js/packages/lib/
44+
verbose: true
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
3547
- name: Lib build
3648
run: |
3749
cd chartlets.js/packages/lib

0 commit comments

Comments
 (0)