Skip to content

Commit 4ae1334

Browse files
committed
replace pytest by coloroma
1 parent b7fd193 commit 4ae1334

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/test-python-setup-uv.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
dependencies = ["requests"]
2626
2727
[dependency-groups]
28-
dev = ["pytest", "black"]
28+
dev = ["colorama", "rich"]
2929
EOF
3030
3131
# Initialize uv and create lock file
@@ -44,8 +44,8 @@ jobs:
4444
# Verify core dependency is installed
4545
python -c "import requests; print('[OK] Core dependency installed')"
4646
# Verify dev group is NOT installed (default is now empty)
47-
if python -c "import pytest" 2>/dev/null; then
48-
echo "[ERROR] pytest should not be installed"
47+
if python -c "import colorama" 2>/dev/null; then
48+
echo "[ERROR] colorama should not be installed"
4949
exit 1
5050
else
5151
echo "[OK] Dev group not installed with default empty install-groups"
@@ -68,7 +68,7 @@ jobs:
6868
dependencies = ["requests"]
6969
7070
[dependency-groups]
71-
dev = ["pytest", "black"]
71+
dev = ["colorama", "rich"]
7272
test = ["pytest-cov", "pytest-mock"]
7373
docs = ["mkdocs"]
7474
EOF
@@ -89,8 +89,8 @@ jobs:
8989
python -c "import pytest_cov; import pytest_mock; print('[OK] Test dependencies installed')"
9090
python -c "import mkdocs; print('[OK] Docs dependencies installed')"
9191
# Verify dev group is NOT installed
92-
if python -c "import black" 2>/dev/null; then
93-
echo "[ERROR] black should not be installed"
92+
if python -c "import rich" 2>/dev/null; then
93+
echo "[ERROR] rich should not be installed"
9494
exit 1
9595
else
9696
echo "[OK] Dev group not installed as expected"
@@ -113,7 +113,7 @@ jobs:
113113
dependencies = ["requests"]
114114
115115
[dependency-groups]
116-
dev = ["pytest"]
116+
dev = ["colorama"]
117117
EOF
118118
119119
pip install uv
@@ -131,8 +131,8 @@ jobs:
131131
# Verify core dependency is installed
132132
python -c "import requests; print('[OK] Core dependency installed')"
133133
# Verify dev group is NOT installed
134-
if python -c "import pytest" 2>/dev/null; then
135-
echo "[ERROR] pytest should not be installed"
134+
if python -c "import colorama" 2>/dev/null; then
135+
echo "[ERROR] colorama should not be installed"
136136
exit 1
137137
else
138138
echo "[OK] No optional groups installed"
@@ -155,7 +155,7 @@ jobs:
155155
dependencies = ["requests"]
156156
157157
[dependency-groups]
158-
dev = ["pytest"]
158+
dev = ["colorama"]
159159
EOF
160160
161161
pip install uv
@@ -186,7 +186,7 @@ jobs:
186186
dependencies = ["requests"]
187187
188188
[dependency-groups]
189-
dev = ["pytest"]
189+
dev = ["colorama"]
190190
EOF
191191
192192
pip install uv
@@ -220,7 +220,7 @@ jobs:
220220
dependencies = ["requests==2.28.0"]
221221
222222
[dependency-groups]
223-
dev = ["pytest"]
223+
dev = ["colorama"]
224224
EOF
225225
226226
pip install uv
@@ -235,7 +235,7 @@ jobs:
235235
dependencies = ["requests==2.31.0"]
236236
237237
[dependency-groups]
238-
dev = ["pytest"]
238+
dev = ["colorama"]
239239
EOF
240240
241241
- name: Test uv action with outdated lock (should fail)
@@ -276,7 +276,7 @@ jobs:
276276
dependencies = ["requests"]
277277
278278
[dependency-groups]
279-
dev = ["pytest"]
279+
dev = ["colorama"]
280280
EOF
281281
282282
pip install uv
@@ -297,7 +297,7 @@ jobs:
297297
- name: Test uv functionality
298298
shell: bash
299299
run: |
300-
python -c "import requests; import pytest; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')"
300+
python -c "import requests; import colorama; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')"
301301
302302
test-uv-cache:
303303
name: Test uv action - Cache functionality
@@ -316,7 +316,7 @@ jobs:
316316
dependencies = ["requests", "numpy"]
317317
318318
[dependency-groups]
319-
dev = ["pytest", "black", "mypy"]
319+
dev = ["colorama", "rich", "mypy"]
320320
EOF
321321
322322
pip install uv
@@ -348,7 +348,7 @@ jobs:
348348
dependencies = ["requests"]
349349
350350
[dependency-groups]
351-
dev = ["pytest"]
351+
dev = ["colorama"]
352352
test = ["pytest-cov"]
353353
docs = ["mkdocs"]
354354
EOF
@@ -364,7 +364,7 @@ jobs:
364364
- name: Verify all groups installed
365365
shell: bash
366366
run: |
367-
python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')"
367+
python -c "import colorama; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')"
368368
369369
test-uv-mixed-separators:
370370
name: Test uv action - Mixed separators (space and comma)
@@ -383,7 +383,7 @@ jobs:
383383
dependencies = ["requests"]
384384
385385
[dependency-groups]
386-
dev = ["pytest"]
386+
dev = ["colorama"]
387387
test = ["pytest-cov"]
388388
docs = ["mkdocs"]
389389
EOF
@@ -399,7 +399,7 @@ jobs:
399399
- name: Verify all groups installed
400400
shell: bash
401401
run: |
402-
python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')"
402+
python -c "import colorama; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')"
403403
404404
test-uv-space-separated-groups:
405405
name: Test uv action - Space-separated groups
@@ -418,7 +418,7 @@ jobs:
418418
dependencies = ["requests"]
419419
420420
[dependency-groups]
421-
dev = ["pytest"]
421+
dev = ["colorama"]
422422
test = ["pytest-cov"]
423423
docs = ["mkdocs"]
424424
EOF
@@ -434,7 +434,7 @@ jobs:
434434
- name: Verify all groups installed
435435
shell: bash
436436
run: |
437-
python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')"
437+
python -c "import colorama; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')"
438438
439439
test-uv-no-dependency-groups-section:
440440
name: Test uv action - No dependency-groups section
@@ -483,7 +483,7 @@ jobs:
483483
dependencies = ["requests"]
484484
485485
[dependency-groups]
486-
dev = ["pytest", "black"]
486+
dev = ["colorama", "rich"]
487487
EOF
488488
489489
pip install uv
@@ -497,4 +497,4 @@ jobs:
497497
- name: Verify dev group installed
498498
shell: bash
499499
run: |
500-
python -c "import pytest; import black; print('[OK] Dev group explicitly installed')"
500+
python -c "import colorama; import rich; print('[OK] Dev group explicitly installed')"

0 commit comments

Comments
 (0)