@@ -22,44 +22,39 @@ jobs:
2222 steps :
2323 - uses : actions/checkout@v5
2424 with :
25- fetch-depth : 0 # Fetch all, necessary to find tags and branches
25+ fetch-depth : 0 # Fetch all, necessary to find tags and branches
2626 fetch-tags : true
2727
28- - uses : actions/setup-python@v5
28+ - name : Setup uv
29+ uses : ./.github/actions/setup-uv
2930 with :
31+ enable-cache : true
3032 python-version : ${{ env.python-version }}
3133
32- - name : Upgrade pip
33- run : python -m pip install --upgrade pip
34-
35- - name : Install graphix
36- run : pip install -e ".[dev,doc]"
37-
3834 - name : Make docs
39- run : sphinx-build -W docs/source docs/build -j auto
35+ run : uv run --extra dev --extra doc sphinx-build -W docs/source docs/build -j auto
4036
4137 lint-text :
4238 runs-on : ubuntu-latest
4339 steps :
44- - uses : actions/checkout@v4
40+ - uses : actions/checkout@v5
4541
46- - uses : actions/setup-python@v5
42+ - name : Setup uv
43+ uses : ./.github/actions/setup-uv
4744 with :
48- python-version : ${{ env.python-version }}
45+ enable-cache : true
4946
5047 - name : Run language-agnostic linters
5148 run : |
52- pip install pre-commit
53-
5449 # Non-fixable
55- pre-commit run -a check-case-conflict
56- pre-commit run -a check-yaml
50+ uvx pre-commit run -a check-case-conflict
51+ uvx pre-commit run -a check-yaml
5752
5853 # Fixable
59- pre-commit run -a end-of-file-fixer || true
60- pre-commit run -a fix-byte-order-marker || true
61- pre-commit run -a mixed-line-ending || true
62- pre-commit run -a trailing-whitespace || true
54+ uvx pre-commit run -a end-of-file-fixer || true
55+ uvx pre-commit run -a fix-byte-order-marker || true
56+ uvx pre-commit run -a mixed-line-ending || true
57+ uvx pre-commit run -a trailing-whitespace || true
6358
6459 - uses : actions/setup-node@v4
6560
0 commit comments