Skip to content

Commit 3206c10

Browse files
committed
chore: swap lcov generation
1 parent 18cc9a5 commit 3206c10

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Set up Python
1212
uses: actions/setup-python@v3
1313
with:
14-
python-version: "3.10"
14+
python-version: "3.11"
1515
- name: Install Dependencies
1616
run: make install
1717
- name: Check format
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
pythonversion: ["3.7", "3.8", "3.9", "3.10"]
25+
pythonversion: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2626
steps:
2727
- name: Checkout Repository
2828
uses: actions/checkout@v3
@@ -36,6 +36,7 @@ jobs:
3636
run: make coverage
3737
- name: Coveralls
3838
if: github.ref == 'refs/heads/main'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: venv/bin/coveralls --service=github
39+
uses: coverallsapp/github-action@master
40+
with:
41+
github-token: ${{ secrets.GITHUB_TOKEN }}
42+
path-to-lcov: "./coverage.lcov"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ __pycache__
22
.coverage
33
.DS_Store
44
*.egg-info
5+
*.lcov
56
dist
67
htmlcov
78
venv

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414

1515
## coverage - Test the project and generate an HTML coverage report
1616
coverage:
17-
$(VIRTUAL_BIN)/pytest --cov=$(PROJECT_NAME) --cov-branch --cov-report=html --cov-report=term-missing
17+
$(VIRTUAL_BIN)/pytest --cov=$(PROJECT_NAME) --cov-branch --cov-report=html --cov-report=lcov --cov-report=term-missing
1818

1919
## clean - Remove the virtual environment and clear out .pyc files
2020
clean:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import setuptools
22

3+
34
with open('README.md', 'r') as fh:
45
long_description = fh.read()
56

67
DEV_REQUIREMENTS = [
78
'bandit == 1.7.*',
89
'black == 22.*',
910
'build == 0.7.*',
10-
'coveralls == 3.*',
1111
'flake8 == 4.*',
1212
'isort == 5.*',
1313
'mypy == 0.942',
1414
'pytest == 7.*',
15-
'pytest-cov == 3.*',
15+
'pytest-cov == 4.*',
1616
'twine == 4.*',
1717
]
1818

0 commit comments

Comments
 (0)