Skip to content

Commit

Permalink
moved coverage to codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtrp committed Oct 30, 2023
1 parent dbbb8a1 commit 1c41102
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,4 +30,9 @@ jobs:
- name: Testing with pytest and measuring coverage
run: |
coverage run --source src -m pytest .
codecov
coverage xml
- name: Reporting coverage to Codacy
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies = [
]

[project.optional-dependencies]
test = ["pytest", "codecov", "coverage"]
test = ["pytest", "coverage"]
models = ["tomotopy>=0.8.0", "gensim", "bitermplus"]

[tool.setuptools.dynamic]
Expand Down

0 comments on commit 1c41102

Please sign in to comment.