diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 551fcee0..c8260ce5 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -36,7 +36,7 @@ jobs: - name: Install fmu-sumo run: > python -m pip install --upgrade pip && - python -m pip install . + python -m pip install .[test] - name: Run tests shell: bash run: | @@ -46,5 +46,4 @@ jobs: access_token=$(az account get-access-token --scope api://88d2b022-3539-4dda-9e66-853801334a86/.default --query accessToken --output tsv) export ACCESS_TOKEN=$access_token - pip install pytest>=6.1.1 pytest-timeout pytest -s --timeout=300 diff --git a/pyproject.toml b/pyproject.toml index 92a0cca0..5b93a6f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ Repository = "https://github.com/equinor/fmu-sumo" [project.optional-dependencies] dev = ["black", "flake8", "pytest"] +test = ["pytest", "pytest-timeout"] docs = [ "sphinx==6.2.1", "sphinx-rtd-theme",