Skip to content

ci: Re-configure for uv #48

ci: Re-configure for uv

ci: Re-configure for uv #48

Workflow file for this run

name: Run CI
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Lint by pre-commit
run: |
pip install pre-commit
pre-commit run --all-files
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
sphinx-version: ['5.*', '6.*', '7.*']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Configure venv
run: |
pip install uv
uv sync
uv pip install 'sphinx[test]==${{ matrix.sphinx-version }}'
- name: Run tests
run: |
uv run pytest
buildtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build package
run: |
pip install uv
uv sync
pip install hatch twine
hatch build
twine check dist/*