Skip to content

Test, lint and typecheck #75

Test, lint and typecheck

Test, lint and typecheck #75

Workflow file for this run

name: Library test, lint and typecheck
run-name: Test, lint and typecheck
on: [push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.9
- run: uv sync
- name: Lint with Ruff
run: uv run ./lint
- name: Test with pytest
run: uv run ./test
- name: Typecheck with ty
run: uv run ./typecheck
- name: Check project version
uses: maybe-hello-world/pyproject-check-version@v4
id: versioncheck
with:
pyproject-path: "./pyproject.toml"
- name: Publish the pypi project
if: steps.versioncheck.outputs.local_version_is_higher == 'true'
run: uv build && uv publish -t ${{ secrets.PYPI_TOKEN }}