Modify pytest workflow to support testing multiple Python versions [ci] (#126936)

This commit is contained in:
Marc Mueller 2024-09-27 18:49:20 +02:00 committed by GitHub
parent 495faf5033
commit f359d619cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -815,7 +815,11 @@ jobs:
needs: needs:
- info - info
- base - base
name: Split tests for full run strategy:
fail-fast: false
matrix:
python-version: ${{ fromJson(needs.info.outputs.python_versions) }}
name: Split tests for full run ${{ matrix.python-version }}
steps: steps:
- name: Install additional OS dependencies - name: Install additional OS dependencies
run: | run: |
@ -828,11 +832,11 @@ jobs:
libgammu-dev libgammu-dev
- name: Check out code from GitHub - name: Check out code from GitHub
uses: actions/checkout@v4.2.0 uses: actions/checkout@v4.2.0
- name: Set up Python ${{ env.DEFAULT_PYTHON }} - name: Set up Python ${{ matrix.python-version }}
id: python id: python
uses: actions/setup-python@v5.2.0 uses: actions/setup-python@v5.2.0
with: with:
python-version: ${{ env.DEFAULT_PYTHON }} python-version: ${{ matrix.python-version }}
check-latest: true check-latest: true
- name: Restore base Python virtual environment - name: Restore base Python virtual environment
id: cache-venv id: cache-venv