Skip to content

Commit d8db791

Browse files
committed
workflows: use uv
1 parent cdbea03 commit d8db791

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
py: ['3.9', '3.10', '3.11', '3.12']
18+
env:
19+
UV_PYTHON: ${{ matrix.py }}
1820

1921
steps:
2022
- uses: actions/checkout@v4
21-
with:
22-
fetch-depth: '0'
23-
- uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.py }}
26-
- name: Update pip
27-
run: python -m pip install -U pip
28-
- name: Install tox-gh
29-
run: python3 -m pip install tox-gh>=1.3.1 tox>=4.14
30-
- name: Run tox
31-
run: tox run
23+
- uses: extractions/setup-just@v2
24+
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
25+
- run: uv sync
26+
- run: just check-all

.github/workflows/docs.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,14 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
env:
18+
UV_PYTHON: 3.12
1719
steps:
1820
- uses: actions/checkout@v4
19-
with:
20-
fetch-depth: '0'
21-
- uses: actions/setup-python@v5
22-
with:
23-
python-version: 3.12
24-
- run: python3 -m pip install -U pip
25-
- run: python3 -m pip install -r docs/requirements.txt
26-
- run: python3 -m pip install .
27-
- run: mkdocs build --strict -d site
28-
env:
29-
STAGPY_DOC_CONFIG: 1
21+
- uses: extractions/setup-just@v2
22+
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
23+
- run: uv sync
24+
- run: just mkdocs build --strict -d site
3025
- uses: actions/upload-pages-artifact@v3
3126
with:
3227
path: "site/"

0 commit comments

Comments
 (0)