Skip to content

Commit

Permalink
Merge pull request #38 from FAST-HEP/kreczko-fix-ci
Browse files Browse the repository at this point in the history
CI: try to fix python version for nox to 3.12
  • Loading branch information
kreczko authored Oct 21, 2024
2 parents d00f0ea + c8b71b1 commit 21e687e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
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

0 comments on commit 21e687e

Please sign in to comment.