Skip to content

Merge pull request #60 from tisonkun/uv #102

Merge pull request #60 from tisonkun/uv

Merge pull request #60 from tisonkun/uv #102

Workflow file for this run

name: Linting
on:
push:
branches: [ trunk ]
paths:
- 'v3/**/*.py'
- '**/ruff.toml'
- 'v3/pyproject.toml'
pull_request:
branches: [ trunk ]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: v3/pyproject.toml
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies
working-directory: v3 # Set the working directory to v3 where pyproject.toml is located
run: uv sync --all-extras --dev
- name: Testing with ruff
working-directory: v3 # Ensure ruff runs in the correct directory
run: uv run ruff check