diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67f3542..eb5712a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 06518c0..e29dcdb 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -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__" }