Skip to content

Bump codecov/codecov-action from 5.5.0 to 5.5.1 #2040

Bump codecov/codecov-action from 5.5.0 to 5.5.1

Bump codecov/codecov-action from 5.5.0 to 5.5.1 #2040

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
schedule:
- cron: "0 13 * * 1"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
COLUMNS: 120
jobs:
build:
name: Build (${{ matrix.python-version }}, ${{ matrix.os }}), ${{ matrix.env }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11", "3.13"]
env: ["test"]
include:
- env: "test-min-deps"
python-version: "3.11"
os: ubuntu-latest
- env: "test-no-optional"
python-version: "3.13"
os: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: |
uv pip install --system -e .
uv pip install --system --group ${{ matrix.env }}
- name: Run Tests
run: |
pytest -n auto --cov=./ --cov-report=xml
- name: Upload code coverage to Codecov
uses: codecov/[email protected]
with:
file: ./coverage.xml
flags: unittests
env_vars: RUNNER_OS,PYTHON_VERSION
name: codecov-umbrella
fail_ci_if_error: false
mypy:
name: mypy
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Fetch all history for all branches and tags.
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: |
uv pip install --system -e .
uv pip install --system --group test
uv pip install --system --group typing
- name: Run mypy
run: |
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report cf_xarray/
- name: Upload mypy coverage to Codecov
uses: codecov/[email protected]
with:
file: mypy_report/cobertura.xml
flags: mypy
env_vars: PYTHON_VERSION
name: codecov-umbrella
fail_ci_if_error: false