From 2b427fc64e71778b8cbd6c1d7d00d9d5385067d0 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 20 May 2022 14:37:23 -0400 Subject: [PATCH] run all tests again w/ burnettk --- .github/workflows/tests.yml | 106 ++++++++++++++++++------------------ noxfile.py | 3 + 2 files changed, 56 insertions(+), 53 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index becb9d08..e519a660 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,65 +12,65 @@ jobs: fail-fast: false matrix: include: - # - { python: "3.10", os: "ubuntu-latest", session: "pre-commit" } - # - { python: "3.10", os: "ubuntu-latest", session: "safety" } - # - { python: "3.10", os: "ubuntu-latest", session: "mypy" } - # - { python: "3.9", os: "ubuntu-latest", session: "mypy" } - # - { python: "3.8", os: "ubuntu-latest", session: "mypy" } - # - { python: "3.7", os: "ubuntu-latest", session: "mypy" } + - { python: "3.10", os: "ubuntu-latest", session: "pre-commit" } + - { python: "3.10", os: "ubuntu-latest", session: "safety" } + - { python: "3.10", os: "ubuntu-latest", session: "mypy" } + - { python: "3.9", os: "ubuntu-latest", session: "mypy" } + - { python: "3.8", os: "ubuntu-latest", session: "mypy" } + - { python: "3.7", os: "ubuntu-latest", session: "mypy" } - { python: "3.10", os: "ubuntu-latest", session: "tests", database: "mysql", } - # - { - # python: "3.10", - # os: "ubuntu-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # python: "3.9", - # os: "ubuntu-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # python: "3.8", - # os: "ubuntu-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # python: "3.7", - # os: "ubuntu-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # python: "3.10", - # os: "windows-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # python: "3.10", - # os: "macos-latest", - # session: "tests", - # database: "sqlite", - # } - # - { - # # typeguard 2.13.3 is broken with TypeDict in 3.10. - # # probably the next release fixes it. - # # https://github.com/agronholm/typeguard/issues/242 - # python: "3.9", - # os: "ubuntu-latest", - # session: "typeguard", - # database: "sqlite", - # } - # - { python: "3.10", os: "ubuntu-latest", session: "xdoctest" } - # - { python: "3.10", os: "ubuntu-latest", session: "docs-build" } + - { + python: "3.10", + os: "ubuntu-latest", + session: "tests", + database: "sqlite", + } + - { + python: "3.9", + os: "ubuntu-latest", + session: "tests", + database: "sqlite", + } + - { + python: "3.8", + os: "ubuntu-latest", + session: "tests", + database: "sqlite", + } + - { + python: "3.7", + os: "ubuntu-latest", + session: "tests", + database: "sqlite", + } + - { + python: "3.10", + os: "windows-latest", + session: "tests", + database: "sqlite", + } + - { + python: "3.10", + os: "macos-latest", + session: "tests", + database: "sqlite", + } + - { + # typeguard 2.13.3 is broken with TypeDict in 3.10. + # probably the next release fixes it. + # https://github.com/agronholm/typeguard/issues/242 + python: "3.9", + os: "ubuntu-latest", + session: "typeguard", + database: "sqlite", + } + - { python: "3.10", os: "ubuntu-latest", session: "xdoctest" } + - { python: "3.10", os: "ubuntu-latest", session: "docs-build" } env: NOXSESSION: ${{ matrix.session }} diff --git a/noxfile.py b/noxfile.py index 87a5cf80..38710e05 100644 --- a/noxfile.py +++ b/noxfile.py @@ -159,6 +159,9 @@ def typeguard(session: Session) -> None: """Runtime type checking using Typeguard.""" session.install(".") session.install("pytest", "typeguard", "pygments") + session.env["FLASK_APP"] = "src/spiff_workflow_webapp" + session.env["FLASK_ENV"] = "testing" + session.run("flask", "db", "upgrade") session.env["RUN_TYPEGUARD"] = "true" session.run("pytest", *session.posargs)