Skip to content

Merge branch 'main' of https://github.com/ScrapeGraphAI/Scrapegraph-ai #1442

Merge branch 'main' of https://github.com/ScrapeGraphAI/Scrapegraph-ai

Merge branch 'main' of https://github.com/ScrapeGraphAI/Scrapegraph-ai #1442

Workflow file for this run

on:
push:
paths:
- 'scrapegraphai/**'
- '.github/workflows/pylint.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install the latest version of rye
uses: eifinger/setup-rye@v3
- name: Install dependencies
run: rye sync --no-lock
- name: Analysing the code with pylint
run: rye run pylint-ci
- name: Check Pylint score
run: |
pylint_score=$(rye run pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
if (( $(echo "$pylint_score < 8" | bc -l) )); then
echo "Pylint score is below 8. Blocking commit."
exit 1
else
echo "Pylint score is acceptable."
fi