Skip to content
Open
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
14 changes: 12 additions & 2 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ jobs:
poetry run ruff --format=github --target-version=py310 .
continue-on-error: true

- name: Test with pytest
- name: Test with pytest and coverage
run: |
poetry install --with dev
poetry run pytest -v -s
poetry run pip install pytest-cov
poetry run pytest -v -s --cov=ipapi --cov-report=xml

- name: Upload coverage to Codecov
if: matrix.python-version == '3.10'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_on_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
17 changes: 17 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
codecov:
require_ci_to_pass: true

coverage:
status:
project:
default:
target: auto
threshold: 5%
patch:
default:
target: 80%

comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: false