Use UV for CI and docs build #396
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: uvx --from build pyproject-build --sdist --wheel | |
| - run: uvx twine check dist/* | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| path: dist/* | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: sudo apt-get install -y gettext graphviz | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: uv run sphinx-build -W -b doctest -b html docs docs/_build | |
| PyTest: | |
| needs: | |
| - dist | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| django-version: | |
| - "5.2" | |
| extras: | |
| - "" | |
| include: | |
| - python-version: "3.x" | |
| django-version: "5.2" | |
| extras: "--extras dramatiq" | |
| - python-version: "3.x" | |
| django-version: "5.2" | |
| extras: "--extras celery" | |
| - python-version: "3.x" | |
| django-version: "5.2" | |
| extras: reversion" | |
| - python-version: "3.x" | |
| django-version: "5.2" | |
| extras: "--extras graphviz,dramatiq" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: sudo apt install -y graphviz redis-server | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: uv run ${{ matrix.extras }} --with Django~=${{ matrix.django-version }}.0 pytest | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |