Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependency groups for uv workflows #10239

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra everest --extra dev
uv sync

- name: Test docs
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 @@ -32,7 +32,7 @@ jobs:
enable-cache: true
python-version: '3.12'
- run: |
uv sync --extra everest --extra dev
uv sync
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 @@ -41,7 +41,7 @@ jobs:

- name: Install ERT with style dependencies
run: |
uv sync --extra style
uv sync

- 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 @@ -46,7 +46,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra everest --extra dev
uv sync

- name: GUI Test
if: inputs.test-type == 'gui-tests'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ert_with_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install ert and everest
run: |
uv sync --extra everest --extra dev
uv sync
uv pip install git+https://github.com/equinor/everest-models

- name: Install flow
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 @@ -35,7 +35,7 @@ jobs:

- name: Install ert
run: |
uv sync --extra dev
uv sync

- 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 @@ -43,7 +43,7 @@ jobs:

- name: Install Everest and dependencies
run: |
uv sync --extra everest --extra dev
uv sync

- 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 @@ -41,7 +41,7 @@ jobs:

- name: Install ERT and dependencies
run: |
uv sync --extra everest --extra dev --extra types
uv sync

- run: echo ::add-matcher::.github/mypy-matcher.json
- name: Run mypy
Expand Down
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,26 @@ timeout = 360
[tool.setuptools_scm]
write_to = "src/ert/shared/version.py"

[dependency-groups]
dev = [
"ert[dev]",
]
types = [
"ert[types]",
]
style = [
"ert[style]",
]
everest = [
"ert[everest]",
]
all = [
{ include-group = "dev" },
{ include-group = "style" },
{ include-group = "everest" },
{ include-group = "types" },
]

[tool.ruff]
src = ["src"]
line-length = 88
Expand Down Expand Up @@ -252,3 +272,4 @@ PYQT6 = true

[tool.uv]
fork-strategy = "requires-python"
default-groups = ["all"]
29 changes: 29 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.