From e37490aa3a25e030093d57e5d74b815211e6771b Mon Sep 17 00:00:00 2001 From: Runar Ask Johannessen Date: Thu, 23 Nov 2023 10:00:33 +0100 Subject: [PATCH] install test dependencies from pyproject.toml --- .github/workflows/run_tests.yaml | 3 +-- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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",