Skip to content

Commit

Permalink
Enable codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
kiukchung committed Sep 6, 2023
1 parent 309e688 commit e8c0566
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ jobs:
- name: Test applications with pytest
if: ${{ steps.filter.outputs.applications == 'true' }}
run: |
pytest keras_core/applications
pytest keras_core/applications --cov=keras_core.applications --cov-branch --cov-report xml:apps-coverage.xml
- name: Test with pytest
run: |
pytest keras_core --ignore keras_core/applications
pytest keras_core --ignore keras_core/applications --cov-branch --cov=keras_core --cov-report xml:core-coverage.xml
- name: Codecov
uses: codecov/codecov-action@v3

format:
name: Check the code format
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ dist/**
*.egg-info/*
.vscode
examples/**/*.jpg
.python-version
.python-version
.coverage
coverage.xml
12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
coverage:
status:
project:
default:
# `auto` compares coverage with the base-commit
target: auto

patch:
default:
target:auto


1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extend-exclude = """
examples/
)
"""

[tool.isort]
profile = "black"
force_single_line = "True"
Expand Down

0 comments on commit e8c0566

Please sign in to comment.