@@ -21,12 +21,12 @@ jobs:
2121 uses : actions/checkout@v4
2222
2323 - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v4
24+ uses : actions/setup-python@v5
2525 with :
2626 python-version : ${{ matrix.python-version }}
2727
2828 - name : Cache pip packages
29- uses : actions/cache@v3
29+ uses : actions/cache@v4
3030 with :
3131 path : ~/.cache/pip
3232 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/pyproject.toml') }}
@@ -48,10 +48,11 @@ jobs:
4848 pytest -v --cov=src --cov-report=xml --cov-report=term
4949
5050 - name : Upload coverage to Codecov
51- uses : codecov/codecov-action@v3
51+ uses : codecov/codecov-action@v5
5252 if : matrix.python-version == '3.11'
5353 with :
54- file : ./coverage.xml
54+ token : ${{ secrets.CODECOV_TOKEN }}
55+ files : ./coverage.xml
5556 flags : unittests
5657 name : codecov-umbrella
5758 fail_ci_if_error : false
6566 uses : actions/checkout@v4
6667
6768 - name : Set up Python
68- uses : actions/setup-python@v4
69+ uses : actions/setup-python@v5
6970 with :
7071 python-version : ' 3.11'
7172
@@ -76,12 +77,44 @@ jobs:
7677 playwright install chromium
7778 playwright install-deps chromium
7879
79- - name : Test basic example
80+ - name : Run example scripts
8081 run : |
82+ # Basic walkthrough
8183 timeout 30 python examples/basic_example.py || true
82-
83- - name : Test advanced example (with timeout)
84- continue-on-error : true
85- run : |
84+ # Advanced interaction logic
85+ timeout 30 python examples/advanced_interactions.py || true
86+ # Data flow (read CSV/write JSON)
87+ timeout 30 python examples/custom_data_flow.py || true
88+ # Nested patterns
89+ timeout 30 python examples/nested_loops.py || true
90+ # Concurrency & scaling
91+ timeout 60 python examples/parallel_scraping_showcase.py || true
92+ # Kitchen sink
8693 timeout 60 python examples/advanced_example.py || true
8794
95+ build-docs :
96+ name : Verify Documentation Build
97+ runs-on : ubuntu-latest
98+
99+ steps :
100+ - name : Checkout code
101+ uses : actions/checkout@v4
102+
103+ - name : Install pnpm
104+ uses : pnpm/action-setup@v4
105+ with :
106+ version : 10
107+
108+ - name : Set up Node
109+ uses : actions/setup-node@v4
110+ with :
111+ node-version : 20
112+ cache : ' pnpm'
113+ cache-dependency-path : docs-site/pnpm-lock.yaml
114+
115+ - name : Install dependencies
116+ run : cd docs-site && pnpm install
117+
118+ - name : Build documentation
119+ run : cd docs-site && pnpm run docs:build
120+
0 commit comments