File tree Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Expand file tree Collapse file tree 2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 44@nox .session (python = ["3.7" , "3.8" , "3.9" , "3.10" ])
55@nox .parametrize ("all_deps" , [True , False ])
66def 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" )
You can’t perform that action at this time.
0 commit comments