Skip to content

Open-source skills for designing and reviewing software with AI agents

ci: install test dependencies from pyproject group

Oliver Newthaf033b6d66e4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0c30557..9945df7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,7 +46,8 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
- - run: pip install -r requirements-dev.txt
+ - run: python -m pip install --upgrade "pip>=25.1"
+ - run: python -m pip install --group test
- run: pytest tests/unit
- name: Prepare archives and notes
env:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index eb73f33..c57f4e7 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -38,6 +38,7 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
- - run: pip install pytest==8.3.5 pyyaml==6.0.2
+ - run: python -m pip install --upgrade "pip>=25.1"
+ - run: python -m pip install --group test
- run: python -m pytest tests/unit
shell: bash
diff --git a/TESTING.md b/TESTING.md
index 6574568..184e4a1 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -19,8 +19,9 @@ python3 -m venv .venv
# Activate environment
source .venv/bin/activate
-# Install testing dependencies
-pip install -r requirements-dev.txt
+# Dependency groups require pip 25.1 or newer
+python -m pip install --upgrade "pip>=25.1"
+python -m pip install --group test
```
---
diff --git a/pyproject.toml b/pyproject.toml
index 1d4b0b3..359356b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,6 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+[dependency-groups]
+test = [
+ "pytest==8.3.5",
+ "pyyaml==6.0.2",
+]
+
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests/unit"]
diff --git a/requirements-dev.txt b/requirements-dev.txt
deleted file mode 100644
index 59c2df5..0000000
--- a/requirements-dev.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 2026 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Development and testing dependencies for EGM Open Source
-pytest==8.3.5
-pyyaml==6.0.2