Skip to content

feat!: migrate Python SDK to v2 API surface #124

feat!: migrate Python SDK to v2 API surface

feat!: migrate Python SDK to v2 API surface #124

Workflow file for this run

name: Test Python SDK
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-3.12-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-3.12-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio responses aioresponses flake8 black isort
cd scrapegraph-py
pip install -e ".[html]"
- name: Lint
run: |
cd scrapegraph-py
black --check scrapegraph_py/ tests/
isort --check-only scrapegraph_py/ tests/
flake8 scrapegraph_py/ tests/ --max-line-length=120 --extend-ignore=E203,W503,E501,F401,F841
- name: Run tests
run: |
cd scrapegraph-py
pytest tests/ -v --ignore=tests/test_integration_v2.py