You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
506 B
25 lines
506 B
name: Ruff
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v5
|
|
- name: Install the project
|
|
run: |
|
|
uv sync --all-extras --dev
|
|
source .venv/bin/activate
|
|
|
|
- name: Run Ruff
|
|
run: |
|
|
uv run ruff format --diff
|
|
uv run ruff check
|
|
|
|
# - name: Run tests
|
|
# run: uv run pytest tests
|