Skip to content

Commit

Permalink
Try with dependency groups
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Dec 16, 2024
1 parent f72b410 commit 514ee08
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install ert with dev-deps
run: |
uv sync --extra dev
uv sync --group dev
- name: Run benchmark
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra dev --extra everest
uv sync --extra everest --group dev
- name: Make test directory
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
python-version: '3.12'
- run: |
uv sync --extra dev --extra everest
uv sync --extra everest --group dev
uv pip uninstall pytest-benchmark
uv pip install pytest-codspeed
- uses: CodSpeedHQ/action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Install ERT with style dependencies
run: |
uv sync --extra style
uv sync --group style
- name: Run style check
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra dev --extra everest
uv sync --extra everest --group dev
- name: GUI Test
if: inputs.test-type == 'gui-tests'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ert_with_slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra dev
uv sync --group dev
- name: Install and setup slurm
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_everest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Install Everest and dependencies
run: |
uv sync --extra dev --extra everest
uv sync --extra everest --group dev
- name: Run Tests Linux
if: ${{ inputs.test-type == 'test' && runner.os != 'macOS'}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Install ERT and dependencies
run: |
uv sync --extra dev --extra types --extra everest
uv sync --extra everest --group dev --group types
- run: echo ::add-matcher::.github/mypy-matcher.json
- name: Run mypy ert
Expand Down
28 changes: 18 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ wdupdate = "everest.jobs.scripts.wdupdate:main"
Repository = "https://github.com/equinor/ert"

[project.optional-dependencies]
everest = [
"progressbar2",
"ruamel.yaml",
"fastapi",
"decorator",
"resdata",
"colorama",
"ropt[pandas]>=0.1,<0.11",
"ropt-dakota>=0.1,<0.11",
"seba-sqlite",
]

[dependency-groups]
dev = [
"furo",
"hypothesis!=6.102.0,!=6.112.3,>=6.85",
Expand Down Expand Up @@ -136,16 +149,11 @@ types = [
"types-psutil",
"types-setuptools"
]
everest = [
"progressbar2",
"ruamel.yaml",
"fastapi",
"decorator",
"resdata",
"colorama",
"ropt[pandas]>=0.1,<0.11",
"ropt-dakota>=0.1,<0.11",
"seba-sqlite",

all = [
{ include-group = 'dev' },
{ include-group = 'style' },
{ include-group = 'types' },
]

[tool.setuptools]
Expand Down

0 comments on commit 514ee08

Please sign in to comment.