Skip to content

Commit 5f87444

Browse files
Fix workflow
1 parent f6ab09b commit 5f87444

2 files changed

Lines changed: 7 additions & 22 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Run Pre-recorded Tests
2-
32
on:
43
pull_request:
54
branches:
65
- master
76
push:
87
branches:
98
- master
10-
119
jobs:
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

‎setup.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"test": [
4242
"pytest",
4343
"pytest-mock",
44+
"pytest-xdist",
4445
"pytest-recording",
4546
"vcrpy",
4647
],

0 commit comments

Comments
 (0)