🔧 Do not store coverage for all matrix combinations

This commit is contained in:
Sebastián Ramírez 2025-12-11 15:31:40 +01:00
parent 11debd56d1
commit 059f25f0ac
1 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,7 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ] os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.14" ] python-version: [ "3.14" ]
pydantic-version: [ "pydantic-v2" ] pydantic-version: [ "pydantic-v2" ]
coverage: [true]
include: include:
- os: macos-latest - os: macos-latest
python-version: "3.8" python-version: "3.8"
@ -62,18 +63,23 @@ jobs:
- os: macos-latest - os: macos-latest
python-version: "3.10" python-version: "3.10"
pydantic-version: "pydantic-v2" pydantic-version: "pydantic-v2"
coverage: false
- os: windows-latest - os: windows-latest
python-version: "3.11" python-version: "3.11"
pydantic-version: "pydantic-v1" pydantic-version: "pydantic-v1"
coverage: false
- os: ubuntu-latest - os: ubuntu-latest
python-version: "3.12" python-version: "3.12"
pydantic-version: "pydantic-v2" pydantic-version: "pydantic-v2"
coverage: false
- os: macos-latest - os: macos-latest
python-version: "3.13" python-version: "3.13"
pydantic-version: "pydantic-v1" pydantic-version: "pydantic-v1"
coverage: false
- os: windows-latest - os: windows-latest
python-version: "3.13" python-version: "3.13"
pydantic-version: "pydantic-v2" pydantic-version: "pydantic-v2"
coverage: false
fail-fast: false fail-fast: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -112,7 +118,9 @@ jobs:
env: env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }} COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }} CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
# Do not store coverage for all possible combinations to avoid file size max errors in Smokeshow
- name: Store coverage files - name: Store coverage files
if: matrix.coverage == true
uses: actions/upload-artifact@v5 uses: actions/upload-artifact@v5
with: with:
name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pydantic-version }} name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.pydantic-version }}