Skip to content

Commit

Permalink
Minior improvements to some of the GitHub Actions workflows (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt authored Jan 18, 2025
1 parent ca42071 commit d0efdda
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ["3.13"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -21,11 +21,11 @@ jobs:
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
# Set fetch-depth: 0 to fetch all history for all branches and tags.
fetch-depth: 0 # Needed for setuptools_scm to work correctly
- name: Set up Python
uses: actions/setup-python@v5 # https://github.com/actions/setup-python
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python prerequisites
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
- name: Install the project
run: uv sync --group docs
- name: MkDocs documentation build
run: mkdocs build
run: uv run mkdocs build -s
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
# Set fetch-depth: 0 to fetch all history for all branches and tags.
fetch-depth: 0 # Needed for setuptools_scm to work correctly
- run: pip install --user ruff
- uses: astral-sh/ruff-action@v3
- run: ruff format --check
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
# Set fetch-depth: 0 to fetch all history for all branches and tags.
fetch-depth: 0 # Needed for setuptools_scm to work correctly
- run: pip install --user ruff
- uses: astral-sh/ruff-action@v3
- run: ruff check --output-format=github .
13 changes: 8 additions & 5 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # https://github.com/actions/checkout
- uses: actions/setup-python@v5 # https://github.com/actions/setup-python
with:
python-version: 3.13
allow-prereleases: true
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
# Set fetch-depth: 0 to fetch all history for all branches and tags.
fetch-depth: 0 # Needed for setuptools_scm to work correctly
- run: pip install -U --user pip mypy
- run: mypy .
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: 3.13
- name: Install the project
run: uv sync --group validate
- name: Run mypy static type checker
run: uv run mypy .

0 comments on commit d0efdda

Please sign in to comment.