Skip to content

Bump codecov/codecov-action from 5 to 7 #271

Bump codecov/codecov-action from 5 to 7

Bump codecov/codecov-action from 5 to 7 #271

Workflow file for this run

---
name: Check format, lint and tests
on:
pull_request: {}
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Validate pyproject.toml and uv.lock
run: uv lock --locked --offline --no-cache --check
- name: Install dependencies
run: uv sync --locked --all-groups
- name: Run format and lint
run: |
uv run ruff format --check --diff .
uv run ruff check --diff .
- name: Run type checking
run: uv run ty check .
- name: Run Tests
run: uv run pytest
- name: Upload coverage to Codecov
if: matrix.python == '3.14'
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: peering-manager/pyixapi
files: coverage.xml
fail_ci_if_error: false