Skip to content

Commit

Permalink
Merge pull request #31 from ssciwr/fix_29_test_coverage
Browse files Browse the repository at this point in the history
Add codecov test coverage for backend tests
  • Loading branch information
lkeegan authored Oct 22, 2024
2 parents 309ddb2 + 98fcefb commit 234c142
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e .[tests]
- run: python -m pytest -sv
- run: python -m pytest --cov=predicTCR_server --cov-report=xml -sv
- uses: codecov/codecov-action@v4
with:
files: ./backend/coverage.xml
name: backend
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

web-docker:
runs-on: ubuntu-latest
name: "Docker website"
Expand Down
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
predicTCR_server = "predicTCR_server.main:main"

[project.optional-dependencies]
tests = ["pytest"]
tests = ["pytest", "pytest-randomly", "pytest-cov",]

[tool.setuptools.dynamic]
version = { attr = "predicTCR_server.__version__" }
Expand Down

0 comments on commit 234c142

Please sign in to comment.