Skip to content

Commit 7cd8d4f

Browse files
committed
chore: swap lcov generation
1 parent a8a678c commit 7cd8d4f

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
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
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
pythonversion: ["3.7", "3.8", "3.9", "3.10"]
23+
pythonversion: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2424
steps:
2525
- name: Checkout Repository
2626
uses: actions/checkout@v3
@@ -34,6 +34,7 @@ jobs:
3434
run: make coverage
3535
- name: Coveralls
3636
if: github.ref == 'refs/heads/main'
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: venv/bin/coveralls --service=github
37+
uses: coverallsapp/github-action@master
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
path-to-lcov: "./coverage.lcov"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v3
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.11"
1818
- name: Build package
1919
run: |
2020
make install

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__
33
.DS_Store
44
.env
55
*.egg-info
6+
*.lcov
67
dist
78
htmlcov
89
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
DEV_REQUIREMENTS = [
1212
'black == 22.*',
1313
'build == 0.7.*',
14-
'coveralls == 3.*',
1514
'flake8 == 4.*',
1615
'isort == 5.*',
1716
'mypy == 0.942',
1817
'pytest == 7.*',
19-
'pytest-cov == 3.*',
18+
'pytest-cov == 4.*',
2019
'twine == 4.*',
2120
]
2221

0 commit comments

Comments
 (0)