Skip to content

Commit

Permalink
chore: swap lcov generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Nov 3, 2022
1 parent 18cc9a5 commit 3206c10
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.11"
- name: Install Dependencies
run: make install
- name: Check format
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: ["3.7", "3.8", "3.9", "3.10"]
pythonversion: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -36,6 +36,7 @@ jobs:
run: make coverage
- name: Coveralls
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: venv/bin/coveralls --service=github
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./coverage.lcov"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ __pycache__
.coverage
.DS_Store
*.egg-info
*.lcov
dist
htmlcov
venv
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build:

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

## clean - Remove the virtual environment and clear out .pyc files
clean:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import setuptools


with open('README.md', 'r') as fh:
long_description = fh.read()

DEV_REQUIREMENTS = [
'bandit == 1.7.*',
'black == 22.*',
'build == 0.7.*',
'coveralls == 3.*',
'flake8 == 4.*',
'isort == 5.*',
'mypy == 0.942',
'pytest == 7.*',
'pytest-cov == 3.*',
'pytest-cov == 4.*',
'twine == 4.*',
]

Expand Down

0 comments on commit 3206c10

Please sign in to comment.