Skip to content

Bump astral-sh/setup-uv from 10.0.1 to 10.2.0 #232

Bump astral-sh/setup-uv from 10.0.1 to 10.2.0

Bump astral-sh/setup-uv from 10.0.1 to 10.2.0 #232

name: "lint, format and test after push"
concurrency:
group: "pygeoapi-k8s-manager-push-lint-and-test"
cancel-in-progress: true
on:
# all pushes and PRs, but not tags
push:
branches: ['**']
tags-ignore: ['**']
pull_request:
jobs:
lint-format-and-test:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
-
name: Checkout Repository
uses: actions/checkout@v7
-
name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
-
name: Set up Python
run: uv python install
-
name: Install the project
run: uv sync --locked --all-extras --dev
-
name: run linter and formatter
run: |
uv run ruff check
uv run ruff check --select I
uv run ruff format --diff
-
name: run tests
run: |
uv run pytest tests/ --cov=src/pygeoapi_k8s_manager --cov-report=term-missing