diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 1fdfb09e..f393d2c9 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -98,10 +98,20 @@ jobs: pip install .[tests] - name: Unit tests - run: COVERAGE_FILE=.coverage.1 pytest --cov=jobflow_remote --cov-report= --cov-config pyproject.toml --ignore tests/integration + run: | + COVERAGE_FILE=.coverage.1 \ + pytest \ + --pytest-durations-min=1 \ + --cov=jobflow_remote --cov-report= --cov-config pyproject.toml \ + --ignore tests/integration \ - name: Integration tests - run: COVERAGE_FILE=.coverage.2 pytest --cov=jobflow_remote --cov-report= --cov-config pyproject.toml tests/integration + run: | + COVERAGE_FILE=.coverage.2 \ + pytest \ + --pytest-durations-min=1 \ + --cov=jobflow_remote --cov-report= --cov-config pyproject.toml \ + tests/integration # combining the reports with --cov-append did not seem to work - name: Generate coverage report diff --git a/pyproject.toml b/pyproject.toml index 2e3e1301..93f1e498 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dependencies = [ [project.optional-dependencies] dev = ["pre-commit>=3.0.0"] -tests = ["docker ~= 7.0", "pytest ~= 8.0", "pytest-cov >= 4,< 6", "pytest-mock ~= 3.14"] +tests = ["docker ~= 7.0", "pytest ~= 8.0", "pytest-cov >= 4,< 6", "pytest-durations ~= 1.3", "pytest-mock ~= 3.14"] docs = [ "autodoc_pydantic>=2.0.0", "pydata-sphinx-theme",