Skip to content

Commit

Permalink
install test dependencies from pyproject.toml (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj authored Nov 23, 2023
1 parent c1b7a64 commit bf8f474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bf8f474

Please sign in to comment.