run all tests again w/ burnettk

This commit is contained in:
jasquat 2022-05-20 14:37:23 -04:00
parent 7e2cde1881
commit 2b427fc64e
2 changed files with 56 additions and 53 deletions

View File

@ -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 }}

View File

@ -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)