Skip to content

changed ci.yml, publish.yml, cli.py and docs #21

changed ci.yml, publish.yml, cli.py and docs

changed ci.yml, publish.yml, cli.py and docs #21

Workflow file for this run

name: CI
on:
push:
branches: [main, feature, dev, develop]
pull_request: null
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Sync dependencies (including dev)
run: uv sync --extra dev --frozen
- name: Ruff lint
run: uv run --no-sync --frozen ruff check .
- name: Ruff format check
run: uv run --no-sync --frozen ruff format --check .
- name: Run tests
run: uv run --no-sync --frozen pytest -q
build:
runs-on: ubuntu-latest
needs: test-and-lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Sync dependencies
run: uv sync --frozen
- name: Build package
run: uv build