Skip to content

Commit 895c266

Browse files
committed
Run seperate typeguard job (because it is much slower)
1 parent a596bcd commit 895c266

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

Diff for: .github/workflows/typeguard.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: typeguard
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
coverage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up Python ${{ matrix.python-version }}
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.10
15+
- name: Install dependencies
16+
run: pip install nox
17+
- name: Test with nox
18+
run: nox -e pytest_typeguard

Diff for: noxfile.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
55
@nox.parametrize("all_deps", [True, False])
66
def pytest(session, all_deps):
7-
if all_deps:
8-
session.install(".[testing,other]")
9-
else:
10-
session.install(".[testing]")
11-
7+
session.install(".[testing,other]" if all_deps else ".[testing]")
128
session.run("coverage", "erase")
9+
session.run("pytest")
10+
1311

14-
if session.python == "3.10":
15-
session.run("pytest", "--typeguard-packages=adaptive")
16-
else:
17-
session.run("pytest")
12+
@nox.session(python="3.10")
13+
def pytest_typeguard(session):
14+
session.install(".[testing,other]")
15+
session.run("coverage", "erase")
16+
session.run("pytest", "--typeguard-packages=adaptive")
1817

1918

2019
@nox.session(python="3.7")

0 commit comments

Comments
 (0)