@@ -29,68 +29,18 @@ jobs:
2929 - name : Install dependencies
3030 run : |
3131 python -m pip install --upgrade pip
32- pip install pytest pytest-asyncio responses aioresponses
32+ pip install pytest pytest-asyncio responses aioresponses flake8 black isort
3333 cd scrapegraph-py
3434 pip install -e ".[html]"
3535
36- - name : Run tests
37- run : |
38- cd scrapegraph-py
39- pytest tests/ -v --ignore=tests/test_integration_v2.py
40- - name : Upload coverage to Codecov
41- uses : codecov/codecov-action@v3
42- with :
43- file : ./scrapegraph-py/coverage.xml
44- flags : unittests
45- name : codecov-umbrella
46- fail_ci_if_error : false
47-
48- lint :
49- runs-on : ubuntu-latest
50-
51- steps :
52- - uses : actions/checkout@v4
53-
54- - name : Set up Python
55- uses : actions/setup-python@v4
56- with :
57- python-version : " 3.11"
58-
59- - name : Install dependencies
60- run : |
61- python -m pip install --upgrade pip
62- pip install flake8 black isort mypy
63- cd scrapegraph-py
64- pip install -e .
65-
66- - name : Run linting
36+ - name : Lint
6737 run : |
6838 cd scrapegraph-py
69- flake8 scrapegraph_py/ tests/ --max-line-length=120 --extend-ignore=E203,W503,E501,F401,F841
7039 black --check scrapegraph_py/ tests/
7140 isort --check-only scrapegraph_py/ tests/
72- mypy scrapegraph_py/ --ignore-missing-imports
73-
74- security :
75- runs-on : ubuntu-latest
76-
77- steps :
78- - uses : actions/checkout@v4
79-
80- - name : Set up Python
81- uses : actions/setup-python@v4
82- with :
83- python-version : " 3.11"
84-
85- - name : Install dependencies
86- run : |
87- python -m pip install --upgrade pip
88- pip install bandit safety
89- cd scrapegraph-py
90- pip install -e .
41+ flake8 scrapegraph_py/ tests/ --max-line-length=120 --extend-ignore=E203,W503,E501,F401,F841
9142
92- - name : Run security checks
43+ - name : Run tests
9344 run : |
9445 cd scrapegraph-py
95- bandit -r scrapegraph_py/ -f json -o bandit-report.json || true
96- safety check --json --output safety-report.json || true
46+ pytest tests/ -v --ignore=tests/test_integration_v2.py
0 commit comments