Skip to content

Commit d4b4abd

Browse files
committed
ci: refine tox command in GitHub Actions workflow
- Updated the tox command to dynamically generate the environment suffix based on the Python version, improving compatibility and clarity.
1 parent 5822cc0 commit d4b4abd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
3939
- name: Run tox targets for ${{ matrix.python-version }}
4040
run: |
41-
tox -e py${{ matrix.python-version }}
41+
ENV_SUFFIX=$(echo "${{ matrix.python-version }}" | tr -d '.')
42+
tox -e py${ENV_SUFFIX}
4243
env:
4344
# Set the COVERAGE_FILE environment variable for coverage.py
4445
COVERAGE_FILE: .coverage.${{ matrix.python-version }}

0 commit comments

Comments
 (0)