@@ -25,30 +25,20 @@ jobs:
2525 - run : SKIP=$(yq '.ci.skip' -o csv .pre-commit-config.yaml) uvx pre-commit run --all-files --show-diff-on-failure
2626 dist :
2727 runs-on : ubuntu-latest
28- needs : [pre-commit]
2928 steps :
3029 - uses : actions/checkout@v6
31- - uses : actions/setup-python@v6
30+ - uses : astral-sh/setup-uv@v7
31+ - run : uvx --from build pyproject-build --sdist --wheel
32+ - run : uvx twine check dist/*
33+ - uses : actions/upload-artifact@v6
3234 with :
33- python-version : " 3.x"
34- cache : ' pip'
35- cache-dependency-path : ' **/pyproject.toml'
36- - run : python -m pip install --upgrade pip build twine
37- - run : python -m build --sdist --wheel
38- - run : python -m twine check dist/*
35+ path : dist/*
3936 docs :
4037 runs-on : ubuntu-latest
41- needs : [pre-commit]
4238 steps :
4339 - uses : actions/checkout@v6
44- - name : setup Python
45- uses : actions/setup-python@v6
46- with :
47- python-version : " 3.10"
48- cache : ' pip'
49- cache-dependency-path : ' **/pyproject.toml'
50- - run : python -m pip install -e .[docs]
51- - run : python -m sphinx -b html -W docs docs/_build
40+ - uses : astral-sh/setup-uv@v7
41+ - run : uv run --group docs sphinx-build -W -b doctest -b html docs docs/_build
5242 PyTest :
5343 runs-on : ubuntu-latest
5444 needs : [pre-commit]
@@ -68,13 +58,11 @@ jobs:
6858 django-version : " 5.2"
6959 steps :
7060 - uses : actions/checkout@v6
71- - name : Setup Python version ${{ matrix.python-version }}
72- uses : actions/setup-python@v6
61+ - uses : astral-sh/setup-uv@v7
7362 with :
7463 python-version : ${{ matrix.python-version }}
75- cache : ' pip'
76- cache-dependency-path : ' **/pyproject.toml'
77- - run : python -m pip install .[test]
78- - run : python -m pip install Django~="${{ matrix.django-version }}.0"
79- - run : python -m pytest
80- - uses : codecov/codecov-action@v3
64+ - run : uv run --with Django~=${{ matrix.django-version }}.0 pytest
65+ - uses : codecov/codecov-action@v5
66+ with :
67+ token : ${{ secrets.CODECOV_TOKEN }}
68+ flags : python-${{ matrix.python-version }}-django-${{ matrix.django-version }}
0 commit comments