diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 1bbb0ddf..c1733df2 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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: @@ -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 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 64923bb0..70d56586 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index da02fcba..f2d086d1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 . diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 1754bb63..c24b8a26 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -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 .