Skip to content

Commit 879f785

Browse files
committed
adding coverage report
1 parent b5b647d commit 879f785

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@ jobs:
3535
- name: Run tests
3636
run: |
3737
lua -lluacov test.lua
38+
39+
- name: Install luacov-coveralls
40+
run: |
41+
pip install --user cpp-coveralls
42+
luarocks install luacov-coveralls
43+
44+
- name: Upload coverage status
45+
run: |
46+
export MY_PYTHON_VER=$(python -c 'import sys; print(".".join(sys.version.split(".")[0:2]))')
47+
export PATH="/Users/runner/Library/Python/$MY_PYTHON_VER/bin:$PATH"
48+
coveralls -b . -i src --dump c.report.json
49+
luacov-coveralls -j c.report.json -v -t ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)