From 9802fb06cbb5d78d063cda1bdddec7cdf581875e Mon Sep 17 00:00:00 2001 From: kreczko Date: Fri, 18 Oct 2024 15:44:05 +0100 Subject: [PATCH 1/2] CI: try to fix python version for nox to 3.12 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c94927..ae03c30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,10 +24,13 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 with: - python-version: "3.x" + python-version: "3.12" - uses: pre-commit/action@v3.0.1 with: extra_args: --hook-stage manual --all-files + - uses: wntrblm/nox@2024.04.15 + with: + python-versions: "3.12" - name: Run PyLint run: | echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json" From c8b71b181abe959b1bb14b84059c19e874834e3e Mon Sep 17 00:00:00 2001 From: kreczko Date: Mon, 21 Oct 2024 11:27:21 +0100 Subject: [PATCH 2/2] build(nox): set python versions for some items --- noxfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 13ba57c..7cf9f23 100644 --- a/noxfile.py +++ b/noxfile.py @@ -11,7 +11,7 @@ nox.options.sessions = ["lint", "pylint", "tests"] -@nox.session +@nox.session(python=["3.11", "3.12"]) def lint(session: nox.Session) -> None: """ Run the linter. @@ -22,7 +22,7 @@ def lint(session: nox.Session) -> None: ) -@nox.session +@nox.session(python=["3.11", "3.12"]) def pylint(session: nox.Session) -> None: """ Run PyLint. @@ -33,7 +33,7 @@ def pylint(session: nox.Session) -> None: session.run("pylint", "fasthep_flow", *session.posargs) -@nox.session +@nox.session(python=["3.11", "3.12"]) def tests(session: nox.Session) -> None: """ Run the unit and regular tests. @@ -103,7 +103,7 @@ def build_api_docs(session: nox.Session) -> None: ) -@nox.session +@nox.session(python=["3.11", "3.12"]) def build(session: nox.Session) -> None: """ Build an SDist and wheel.