File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Run Pre-recorded Tests
2-
32on :
43 pull_request :
54 branches :
65 - master
76 push :
87 branches :
98 - master
10-
119jobs :
1210 run-tests :
1311 runs-on : ubuntu-latest
@@ -17,40 +15,26 @@ jobs:
1715 steps :
1816 - name : Check out code
1917 uses : actions/checkout@v6
20-
2118 - name : Set up Python ${{ matrix.python-version }}
2219 uses : actions/setup-python@v6
2320 with :
2421 python-version : ${{ matrix.python-version }}
25-
2622 - name : Install dependencies
27- run : |
28- pip install vcrpy pytest==7.4.2 requests token-bucket pytest-mock python-documentcloud pytest-xdist pytest-recording python-squarelet
29-
23+ run : pip install -e ".[test]"
3024 - name : Run pre-recorded tests
31- run : |
32- make test
33- working-directory : .
34-
25+ run : make test
3526 pylint-and-black :
3627 runs-on : ubuntu-latest
3728 steps :
3829 - name : Check out code
3930 uses : actions/checkout@v6
40-
4131 - name : Set up Python 3.11
4232 uses : actions/setup-python@v6
4333 with :
4434 python-version : " 3.11"
45-
46- - name : Install dependencies for imports
47- run : |
48- pip install python-dateutil requests urllib3 token-bucket fastjsonschema ratelimit listcrunch pyyaml pytest vcrpy python-squarelet
49-
50- - name : Install pylint and black
51- run : |
52- pip install pylint black
53-
35+ - name : Install dependencies
36+ run : pip install -e ".[dev,test]"
5437 - name : Run pylint and black on ./documentcloud and ./tests
5538 run : |
56- pylint ./documentcloud ./tests; black --check ./documentcloud ./tests
39+ pylint ./documentcloud ./tests
40+ black --check ./documentcloud ./tests
Original file line number Diff line number Diff line change 4141 "test" : [
4242 "pytest" ,
4343 "pytest-mock" ,
44+ "pytest-xdist" ,
4445 "pytest-recording" ,
4546 "vcrpy" ,
4647 ],
You can’t perform that action at this time.
0 commit comments