Skip to content

Commit

Permalink
Merge pull request #211 from yfukai/support_3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai authored Oct 23, 2022
2 parents a96ae69 + 9206612 commit 43a8e71
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 157 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
include:
- { python-version: 3.9, os: ubuntu-latest, session: "pre-commit" }
- { python-version: 3.9, os: ubuntu-latest, session: "safety" }
- { python-version: "3.10", os: ubuntu-latest, session: "mypy" }
- { python-version: 3.9, os: ubuntu-latest, session: "mypy" }
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
- { python-version: 3.7, os: ubuntu-latest, session: "mypy" }
- { python-version: "3.10", os: ubuntu-latest, session: "tests" }
- { python-version: 3.9, os: ubuntu-latest, session: "tests" }
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
- { python-version: "3.10", os: windows-latest, session: "tests" }
- { python-version: "3.10", os: macos-latest, session: "tests" }
- { python-version: 3.9, os: ubuntu-latest, session: "typeguard" }
Expand Down
11 changes: 9 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


package = "laptrack"
python_versions = ["3.10", "3.9", "3.8"]
python_versions = ["3.10", "3.9", "3.8", "3.7"]
safety_ignore = [44717, 44715, 44716] # ignore numpy 1.21 CVEs
nox.needs_version = ">= 2021.6.6"
nox.options.sessions = (
"pre-commit",
Expand All @@ -47,7 +48,13 @@ def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
requirements = session.poetry.export_requirements()
session.install("safety")
session.run("safety", "check", "--full-report", f"--file={requirements}")
session.run(
"safety",
"check",
"--full-report",
f"--file={requirements}",
*[f"--ignore={ignore}" for ignore in safety_ignore],
)


@session(python=python_versions)
Expand Down
Loading

0 comments on commit 43a8e71

Please sign in to comment.