Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace codecov with local lcov #413

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/coverage-lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pr-coverage-lint

on:
pull_request:
branches: ['*']

jobs:
tests:
name: Coverage and Lint
runs-on: ubuntu-22.04

steps:
- uses: actions/[email protected]
with:
submodules: recursive

- uses: actions/[email protected]
with:
python-version: 3.11

- name: Install from source
run: |
pip install --upgrade pip setuptools wheel
pip install .[test]

- name: Lint
run: flake8 src/h3 tests

- name: Pylint
# As a test for visibility of API bindings, we want to ensure that pylint has no
# `import-error` warnings for h3 imports.
run: pylint --disable=all --enable=import-error tests/

- name: Coverage
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest --cov-report=lcov

- name: Report coverage
uses: romeovs/[email protected]
with:
filter-changed-files: true
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage.lcov
2 changes: 0 additions & 2 deletions .github/workflows/coverage-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: coverage-lint
on:
push:
branches: [master]
pull_request:
branches: ['*']

jobs:
tests:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
coverage.xml
coverage.lcov
.tox
nosetests.xml
.noseids
Expand Down
Loading