From 9ecdb669bdd38973751d43d02cb4a2d6bf61636e Mon Sep 17 00:00:00 2001 From: Kathleen Labrie Date: Mon, 17 Aug 2026 10:16:28 -1000 Subject: [PATCH] updates to workflows and pre-commit-config Update workflow to install python 3.11 to 3.14. Add write permission to publish_pypi because the "source" workflow needs it for the coverage badge. Bump versions for pre-commit-hooks and ruff-pre-commit. --- .github/workflows/build_tests.yml | 2 ++ .github/workflows/publish_pypi.yml | 3 +++ .github/workflows/source_tests.yml | 2 ++ .pre-commit-config.yaml | 4 ++-- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index cf998a11..0a10fdcb 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -43,6 +43,8 @@ jobs: python-version: | 3.11 3.12 + 3.13 + 3.14 - name: "Install dependencies" run: | diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 8186621a..27c70358 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -8,6 +8,9 @@ on: - '!*dev*' workflow_dispatch: +permissions: + contents: write + jobs: source_test: # This runs the test files on the repository before publishing it. diff --git a/.github/workflows/source_tests.yml b/.github/workflows/source_tests.yml index 61bc48f4..9e33df34 100644 --- a/.github/workflows/source_tests.yml +++ b/.github/workflows/source_tests.yml @@ -40,6 +40,8 @@ jobs: python-version: | 3.11 3.12 + 3.13 + 3.14 - name: "Install Fortran Compiler and OpenBLAS" run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f31191a5..7969b7f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_stages: ["pre-commit"] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-yaml - id: check-json @@ -23,7 +23,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.4.2 + rev: v0.16.0 hooks: # Run the linter. - id: ruff