Skip to content

Commit ef5f9e4

Browse files
style(ci): improve test job names with descriptive labels
- Add job name template with proper capitalization - Change pymongo-version format from "414" to "4.14" for readability - Update tox env construction to strip dots from pymongo version Job names now show as: "test (Python 3.10, MongoDB 4.4, PyMongo 4.14)" instead of: "test (3.10, 4.4, 414)"
1 parent c5d9e93 commit ef5f9e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/github-actions.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ jobs:
3939
test:
4040
# Test suite runs against recent python versions
4141
# and against a few combinations of MongoDB and pymongo
42+
name: "test (Python ${{ matrix.python-version }}, MongoDB ${{ matrix.mongodb-version }}, PyMongo ${{ matrix.pymongo-version }})"
4243
runs-on: ubuntu-latest
4344
strategy:
4445
fail-fast: false
4546
matrix:
4647
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
4748
mongodb-version: [ "4.4", "5.0", "6.0", "7.0", "8.0", "8.3" ]
48-
pymongo-version: [ "414", "415", "416", "417" ]
49+
pymongo-version: [ "4.14", "4.15", "4.16", "4.17" ]
4950
steps:
5051
- uses: actions/checkout@v6
5152
- name: Install uv and set the Python version ${{ matrix.python-version }}
@@ -70,7 +71,7 @@ jobs:
7071
run: uv sync --only-group test
7172
- name: Run test suite
7273
run: |
73-
env="py$(echo "${{ matrix.python-version }}" | tr -d . )-mg${{ matrix.pymongo-version }}"
74+
env="py$(echo "${{ matrix.python-version }}" | tr -d . )-mg$(echo "${{ matrix.pymongo-version }}" | tr -d . )"
7475
echo "Running tox environment: $env"
7576
uv run tox run -e "$env" -- "--cov=mongoengine --cov-report="
7677
uv run coverage combine

0 commit comments

Comments
 (0)