39 lines
708 B
YAML
39 lines
708 B
YAML
name: Run tests
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.12"]
|
|
env:
|
|
PIP_ROOT_USER_ACTION: ignore
|
|
UV_LINK_MODE: copy
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install uv
|
|
uv sync --locked
|
|
|
|
- name: Check format with ruff
|
|
run: |
|
|
uv run ruff format --check
|
|
|
|
- name: Check code linting with ruff
|
|
run: |
|
|
uv run ruff check
|