Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Measure test coverage
  • Loading branch information
jarrodmillman committed Aug 26, 2022
commit 0929bec26cbcae1797a10f7a6fce1bd4109351fb
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: coverage

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
report:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install ".[test]"
pip list

- name: Test NetworkX
run: |
python -m pytest --cov=lazy_loader --doctest-modules --durations=20
codecov
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dynamic = ["description"]


[project.optional-dependencies]
test = ["pytest >= 7"]
test = ["pytest >= 7.1", "pytest-cov >= 3.0", "codecov >= 2.1"]
lint = ["pre-commit >= 2.20"]

[project.urls]
Expand Down