Skip to content

Commit

Permalink
Merge pull request #590 from openego/fixes/#589-unpin-broken-dependency
Browse files Browse the repository at this point in the history
Test package installation during CI
  • Loading branch information
ClaraBuettner authored Sep 13, 2023
2 parents f58ecf5 + 405bf1e commit 910f3db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ jobs:
run: "python -m nox -s build"
env:
PLATFORM: ${{ matrix.os.image }}
- name: "Install the package"
run: "python -m nox -s install"
env:
PLATFORM: ${{ matrix.os.image }}
10 changes: 10 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from pathlib import Path
from pprint import pformat

import nox
Expand Down Expand Up @@ -58,3 +59,12 @@ def build(session):
session.install("twine")
session.run("python", "setup.py", "bdist", "bdist_wheel")
session.run("twine", "check", "dist/eTraGo*")


@nox.session(python=["3", "3.8", "3.9", "3.10", "3.11"])
def install(session):
"""Install the package."""
setdefaults(session)
session.env["SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL"] = "False"
session.run("python", "-mpip", "install", "--upgrade", "pip")
session.run("python", "-mpip", "install", *Path("dist").glob("*.whl"))

0 comments on commit 910f3db

Please sign in to comment.