Skip to content

36 feat/enhanced shouldrun and context handling #59

36 feat/enhanced shouldrun and context handling

36 feat/enhanced shouldrun and context handling #59

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ruff format
uses: astral-sh/ruff-action@v3
with:
args: format
- name: Ruff check
uses: astral-sh/ruff-action@v3
with:
args: check
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup UV
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tests
run: uv run pytest