From 9f31b7f76854be091e96fc628f40fbe7f1a4be27 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Sun, 2 Nov 2025 19:53:23 +0100 Subject: [PATCH] Updates CI matrix and Codecov configuration Removes Python 3.7 from the general test matrix as it's no longer widely available. Adds a specific job to test with Python 3.7 on ubuntu-20.04. Updates the Codecov upload condition to include ubuntu-20.04, ensuring coverage reports are generated and uploaded for the Python 3.7 test run. Adds Codecov token for secure uploads. --- .github/workflows/tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7f737bf..2a06ce3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,10 +13,10 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - exclude: - # Python 3.7 is not available on macos-latest (arm64) - - os: macos-latest + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + include: + # Python 3.7 only on ubuntu-20.04 (EOL, not available on 24.04) + - os: ubuntu-20.04 python-version: '3.7' steps: @@ -37,8 +37,9 @@ jobs: pytest --cov=src --cov-report=xml --cov-report=term-missing - name: Upload coverage to Codecov - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' + if: (matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-20.04') && matrix.python-version == '3.11' uses: codecov/codecov-action@v4 with: file: ./coverage.xml fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }}