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.
This commit is contained in:
1 file changed
+6
-5
@@ -13,10 +13,10 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||||
exclude:
|
include:
|
||||||
# Python 3.7 is not available on macos-latest (arm64)
|
# Python 3.7 only on ubuntu-20.04 (EOL, not available on 24.04)
|
||||||
- os: macos-latest
|
- os: ubuntu-20.04
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -37,8 +37,9 @@ jobs:
|
|||||||
pytest --cov=src --cov-report=xml --cov-report=term-missing
|
pytest --cov=src --cov-report=xml --cov-report=term-missing
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- 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
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
Reference in new issue
Block a user