Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: try to fix python version for nox to 3.12 #38

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
extra_args: --hook-stage manual --all-files
- uses: wntrblm/[email protected]
with:
python-versions: "3.12"
- name: Run PyLint
run: |
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json"
Expand Down
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Loading