Skip to content

Commit d0efdda

Browse files
authored
Minior improvements to some of the GitHub Actions workflows (#1406)
1 parent ca42071 commit d0efdda

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/doc.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
15-
python-version: ["3.12"]
15+
python-version: ["3.13"]
1616
fail-fast: false
1717
runs-on: ${{ matrix.os }}
1818
steps:
@@ -21,11 +21,11 @@ jobs:
2121
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
2222
# Set fetch-depth: 0 to fetch all history for all branches and tags.
2323
fetch-depth: 0 # Needed for setuptools_scm to work correctly
24-
- name: Set up Python
25-
uses: actions/setup-python@v5 # https://github.com/actions/setup-python
24+
- name: Install uv and set the python version
25+
uses: astral-sh/setup-uv@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28-
- name: Install python prerequisites
29-
run: pip install -U --user pip setuptools setuptools-scm griffe_typingdoc mkdocs-include-markdown-plugin mkdocs-macros-plugin mkdocs-material mkdocstrings[python] . plugins/ext_test
28+
- name: Install the project
29+
run: uv sync --group docs
3030
- name: MkDocs documentation build
31-
run: mkdocs build
31+
run: uv run mkdocs build -s

.github/workflows/format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
1717
# Set fetch-depth: 0 to fetch all history for all branches and tags.
1818
fetch-depth: 0 # Needed for setuptools_scm to work correctly
19-
- run: pip install --user ruff
19+
- uses: astral-sh/ruff-action@v3
2020
- run: ruff format --check

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
1717
# Set fetch-depth: 0 to fetch all history for all branches and tags.
1818
fetch-depth: 0 # Needed for setuptools_scm to work correctly
19-
- run: pip install --user ruff
19+
- uses: astral-sh/ruff-action@v3
2020
- run: ruff check --output-format=github .

.github/workflows/mypy.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4 # https://github.com/actions/checkout
15-
- uses: actions/setup-python@v5 # https://github.com/actions/setup-python
1615
with:
17-
python-version: 3.13
18-
allow-prereleases: true
1916
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
2017
# Set fetch-depth: 0 to fetch all history for all branches and tags.
2118
fetch-depth: 0 # Needed for setuptools_scm to work correctly
22-
- run: pip install -U --user pip mypy
23-
- run: mypy .
19+
- name: Install uv and set the python version
20+
uses: astral-sh/setup-uv@v5
21+
with:
22+
python-version: 3.13
23+
- name: Install the project
24+
run: uv sync --group validate
25+
- name: Run mypy static type checker
26+
run: uv run mypy .

0 commit comments

Comments
 (0)