Skip to content

Use uv instead of pip in github actions #1531

Use uv instead of pip in github actions

Use uv instead of pip in github actions #1531

Workflow file for this run

name: Lint
on:
push:
branches:
- main
tags: "*"
pull_request:
env:
UV_SYSTEM_PYTHON: 1
jobs:
lint:
name: Linting through pre-commit
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Setup 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
cache-dependency-glob: pyproject.toml
- name: Install semeio with style deps
run: |
uv pip install ".[style]"
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure