Skip to content

Python scraper based on AI

changed the workflow for building

VinciGit00f2a33788c0eb
diff --git a/.github/workflows/evaluate_pylint_score.py b/.github/workflows/evaluate_pylint_score.py
index 7e29d716..c3e6299f 100644
--- a/.github/workflows/evaluate_pylint_score.py
+++ b/.github/workflows/evaluate_pylint_score.py
@@ -5,7 +5,6 @@ import re
def evaluate_pylint_score():
lines = sys.stdin.readlines()
- print(lines)
score_line = next((line for line in lines if 'Your code has been rated at' in line), None)
if score_line:
diff --git a/.github/workflows/evaluete_push.yml b/.github/workflows/evaluete_push.yml
new file mode 100644
index 00000000..4c51f14d
--- /dev/null
+++ b/.github/workflows/evaluete_push.yml
@@ -0,0 +1,23 @@
+name: Pylint
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.10"]
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v3
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install pylint
+ pip install -r requirements.txt
+ - name: Analysing the code with pylint
+ run: pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py scrapegraphai/*.py examples/*.py tests/*.py | python .github/workflows/evaluate_pylint_score.py
\ No newline at end of file
diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml
index 4c51f14d..154a8cb8 100644
--- a/.github/workflows/pylint.yml
+++ b/.github/workflows/pylint.yml
@@ -20,4 +20,4 @@ jobs:
pip install pylint
pip install -r requirements.txt
- name: Analysing the code with pylint
- run: pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py scrapegraphai/*.py examples/*.py tests/*.py | python .github/workflows/evaluate_pylint_score.py
\ No newline at end of file
+ run: pylint --disable=C0114,C0115,C0116 --exit-zero scrapegraphai/**/*.py scrapegraphai/*.py examples/*.py tests/*.py
\ No newline at end of file