Add linting and tests on PRs #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Linting | |
on: [pull_request] | |
jobs: | |
lint-python-files: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
# Install | |
- name: Install | |
run: uv sync | |
# Check code | |
- name: Ruff format | |
run: uv run ruff format --check | |
- name: Ruff check | |
run: uv run ruff check |