Skip to content

fmt

fmt #6

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Create venv and install dependencies
run: |
uv venv
. .venv/bin/activate
uv pip install -r requirements.txt
uv pip install pre-commit
- name: Copy pre-commit config
run: |
cp .ci-pre-commit-config.yaml .pre-commit-config.yaml
- name: Run pre-commit
run: |
. .venv/bin/activate
pre-commit run --all-files