Skip to content

Commit e251eb2

Browse files
authored
chore: Rename 'py' to 'pytest' in GHA to avoid confusion (#749)
When you see `py` in tests it not clear what exactly going on. Until now I thought that it represents "python", but actually this part run `pytest` ![image](https://github.com/user-attachments/assets/a7f5aeef-a4ab-4d18-a793-834f0b3c5ce9) So, for avoiding confusion and add ability to explicitly specify `tox r -e pytest`, this PR was made
1 parent 5181957 commit e251eb2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ jobs:
452452
- macos-13
453453
- windows-2025
454454
toxenv:
455-
- py
455+
- pytest
456456
xfail:
457457
- false
458458

.github/workflows/reusable-tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ jobs:
262262
shell: bash
263263
- name: Download all the dists
264264
if: >-
265-
contains(fromJSON('["metadata-validation", "py"]'), inputs.toxenv)
265+
contains(fromJSON('["metadata-validation", "pytest"]'), inputs.toxenv)
266266
uses: actions/download-artifact@v4
267267
with:
268268
name: ${{ inputs.dists-artifact-name }}

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ set_env =
104104
COVERAGE_PROCESS_START = {toxinidir}{/}.coveragerc
105105
wheel_build_env = .pkg
106106

107+
# Duplicate default 'py' env to 'pytest' to be able run pytest with 'tox run -e pytest'
108+
[testenv:pytest]
109+
107110

108111
[testenv:cleanup-dists]
109112
description =

0 commit comments

Comments
 (0)