Skip to content

Commit d5e11b9

Browse files
committed
Fix coverage creation
1 parent c81894b commit d5e11b9

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/test.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Set up Python 3.x
11+
- name: Set up Python 3.10
1212
uses: actions/setup-python@v2
1313
with:
14-
python-version: 3.x
14+
python-version: "3.10"
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install python-dateutil pytest mock pytest-cov coverage coveragepy-lcov
18+
pip install python-dateutil pytest mock pytest-cov coverage
1919
- name: Run Test
2020
run: |
21-
py.test --cov coveralls --cov-report term-missing --cov=resources tests/
22-
- name: Covert to lcov
23-
run: |
24-
coveragepy-lcov
21+
py.test --cov coveralls --cov-report term-missing --cov-report=lcov --cov=resources tests/
2522
- name: Coveralls GitHub Action
2623
uses: coverallsapp/[email protected]
2724
with:
2825
github-token: ${{ secrets.GITHUB_TOKEN }}
29-
path-to-lcov: lcov.info
26+
path-to-lcov: coverage.lcov

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
Thumbs.db
1111
*~
1212
.cache
13+
.coverage

0 commit comments

Comments
 (0)