Skip to content

ci: 👷 improve publishing workflow to comply with pypi recommendations #9

ci: 👷 improve publishing workflow to comply with pypi recommendations

ci: 👷 improve publishing workflow to comply with pypi recommendations #9

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
- 'release/*'
- 'hotfix/*'
pull_request:
branches:
- main
- develop
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- run: uv sync --dev
- run: uv run ruff check src tests
- run: uv run ruff format --check src tests
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- run: uv sync --dev
- run: uv run basedpyright src
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- run: uv sync --dev
- run: uv run pytest