Skip to content

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

Keep test dependency migration out of release automation

n3wth10dca67d7402
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9945df7..7712e65 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,8 +46,7 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
- - run: python -m pip install --upgrade "pip>=25.1"
- - run: python -m pip install --group test
+ - run: python -m pip install pytest==8.3.5 pyyaml==6.0.2
- run: pytest tests/unit
- name: Prepare archives and notes
env:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index c57f4e7..eb73f33 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -38,7 +38,6 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.12'
- - run: python -m pip install --upgrade "pip>=25.1"
- - run: python -m pip install --group test
+ - run: pip install pytest==8.3.5 pyyaml==6.0.2
- run: python -m pytest tests/unit
shell: bash
diff --git a/TESTING.md b/TESTING.md
index 184e4a1..6574568 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -19,9 +19,8 @@ python3 -m venv .venv
# Activate environment
source .venv/bin/activate
-# Dependency groups require pip 25.1 or newer
-python -m pip install --upgrade "pip>=25.1"
-python -m pip install --group test
+# Install testing dependencies
+pip install -r requirements-dev.txt
```
---
diff --git a/pyproject.toml b/pyproject.toml
index 359356b..1d4b0b3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -12,12 +12,6 @@
# 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
new file mode 100644
index 0000000..7003a3e
--- /dev/null
+++ b/requirements-dev.txt
@@ -0,0 +1,17 @@
+# 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>=7.4.0
+pyyaml>=6.0.1