Skip to content

Commit

Permalink
Add dependency groups for uv workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Mar 7, 2025
1 parent 4e6bd03 commit b557496
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 8 deletions.
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.

0 comments on commit b557496

Please sign in to comment.