55 - main
66 pull_request :
77jobs :
8- docs :
8+ dist :
99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v6
12- - uses : actions/setup-python@v6
12+ - uses : astral-sh/setup-uv@v7
13+ - run : uvx --from build pyproject-build --sdist --wheel
14+ - run : uvx twine check dist/*
15+ - uses : actions/upload-artifact@v6
1316 with :
14- python-version : " 3.x"
15- - run : sudo apt install -y python3-enchant graphviz
16- - run : python -m pip install sphinxcontrib-spelling
17- - run : python -m pip install -e '.[docs]'
18- - run : python -m sphinx -W -b spelling docs docs/_build
19- dist :
17+ path : dist/*
18+ docs :
2019 runs-on : ubuntu-latest
2120 steps :
2221 - uses : actions/checkout@v6
23- - uses : actions/setup-python@v6
24- with :
25- python-version : " 3.x"
26- - run : python -m pip install --upgrade pip build wheel twine readme-renderer
27- - run : python -m build --sdist --wheel
28- - run : python -m twine check dist/*
22+ - run : sudo apt-get install -y gettext graphviz
23+ - uses : astral-sh/setup-uv@v7
24+ - run : uv run --group docs sphinx-build -W -b doctest -b spelling -b html docs docs/_build
2925 PyTest :
3026 needs :
3127 - dist
@@ -41,29 +37,28 @@ jobs:
4137 django-version :
4238 - " 5.2"
4339 extras :
44- - " test "
40+ - " "
4541 include :
46- - python-version : " 3.x "
42+ - python-version : " 3.13 "
4743 django-version : " 5.2"
48- extras : " test, dramatiq"
49- - python-version : " 3.x "
44+ extras : " --extra dramatiq"
45+ - python-version : " 3.13 "
5046 django-version : " 5.2"
51- extras : " test, celery"
52- - python-version : " 3.x "
47+ extras : " --extra celery"
48+ - python-version : " 3.13 "
5349 django-version : " 5.2"
54- extras : " test, reversion"
55- - python-version : " 3.x "
50+ extras : " --extra reversion"
51+ - python-version : " 3.13 "
5652 django-version : " 5.2"
57- extras : " test, graphviz, dramatiq"
53+ extras : " --extra graphviz --extra dramatiq"
5854 steps :
5955 - uses : actions/checkout@v6
60- - uses : actions/setup-python@v6
56+ - run : sudo apt install -y graphviz redis-server
57+ - uses : astral-sh/setup-uv@v7
6158 with :
6259 python-version : ${{ matrix.python-version }}
63- - run : sudo apt install -y graphviz redis-server
64- - run : python -m pip install "django==${{ matrix.django-version }}.*"
65- - run : python -m pip install -e .[${{ matrix.extras }}]
66- - run : python -m pytest
60+ - run : uv run ${{ matrix.extras }} --with Django~=${{ matrix.django-version }}.0 pytest
6761 - uses : codecov/codecov-action@v5
6862 with :
6963 token : ${{ secrets.CODECOV_TOKEN }}
64+ flags : python-${{ matrix.python-version }}-django-${{ matrix.django-version }}
0 commit comments