File tree Expand file tree Collapse file tree 5 files changed +362
-458
lines changed Expand file tree Collapse file tree 5 files changed +362
-458
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,10 @@ jobs:
37
37
cd scrapegraph-py
38
38
pip install -e .
39
39
40
- - name : Run tests with coverage
40
+ - name : Run mocked tests with coverage
41
41
run : |
42
42
cd scrapegraph-py
43
- python -m pytest tests/ -v --cov=scrapegraph_py --cov-report=xml --cov-report=term-missing
44
-
45
- - name : Run real API tests (if API key available)
46
- run : |
47
- cd scrapegraph-py
48
- if [ -n "$SGAI_API_KEY" ]; then
49
- python -m pytest tests/test_real_apis.py -v --tb=short
50
- else
51
- echo "SGAI_API_KEY not set, skipping real API tests"
52
- fi
53
- env :
54
- SGAI_API_KEY : ${{ secrets.SGAI_API_KEY }}
43
+ python -m pytest tests/test_mocked_apis.py -v --cov=scrapegraph_py --cov-report=xml --cov-report=term-missing
55
44
56
45
deploy :
57
46
needs : test
Original file line number Diff line number Diff line change @@ -36,21 +36,10 @@ jobs:
36
36
cd scrapegraph-py
37
37
pip install -e .
38
38
39
- - name : Run tests with coverage
39
+ - name : Run mocked tests with coverage
40
40
run : |
41
41
cd scrapegraph-py
42
- python -m pytest tests/ -v --cov=scrapegraph_py --cov-report=xml --cov-report=term-missing
43
-
44
- - name : Run real API tests (if API key available)
45
- run : |
46
- cd scrapegraph-py
47
- if [ -n "$SGAI_API_KEY" ]; then
48
- python -m pytest tests/test_real_apis.py -v --tb=short
49
- else
50
- echo "SGAI_API_KEY not set, skipping real API tests"
51
- fi
52
- env :
53
- SGAI_API_KEY : ${{ secrets.SGAI_API_KEY }}
42
+ python -m pytest tests/test_mocked_apis.py -v --cov=scrapegraph_py --cov-report=xml --cov-report=term-missing
54
43
55
44
- name : Upload coverage to Codecov
56
45
uses : codecov/codecov-action@v3
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments