Skip to content

Commit

Permalink
Run seperate typeguard job (because it is much slower)
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed May 31, 2022
1 parent f4880d0 commit a4fadee
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/typeguard.yml
@@ -0,0 +1,18 @@
name: typeguard

on:
- push

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: pip install nox
- name: Test with nox
run: nox -e pytest_typeguard
17 changes: 8 additions & 9 deletions noxfile.py
Expand Up @@ -4,17 +4,16 @@
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
@nox.parametrize("all_deps", [True, False])
def pytest(session, all_deps):
if all_deps:
session.install(".[testing,other]")
else:
session.install(".[testing]")

session.install(".[testing,other]" if all_deps else ".[testing]")
session.run("coverage", "erase")
session.run("pytest")


if session.python == "3.10":
session.run("pytest", "--typeguard-packages=adaptive")
else:
session.run("pytest")
@nox.session(python="3.10")
def pytest_typeguard(session):
session.install(".[testing,other]")
session.run("coverage", "erase")
session.run("pytest", "--typeguard-packages=adaptive")


@nox.session(python="3.7")
Expand Down

0 comments on commit a4fadee

Please sign in to comment.