Skip to content

Commit

Permalink
feat: add codequality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PeriniM committed Jan 6, 2025
1 parent c5630ce commit 4380afb
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
name: Code Quality Checks

on:
push:
paths:
- 'scrapegraphai/**'
- '.github/workflows/pylint.yml'

jobs:
build:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install dependencies
run: uv sync --frozen

- name: Run Ruff
run: uv run ruff check scrapegraphai

- name: Run Black
run: uv run black --check scrapegraphai

- name: Run isort
run: uv run isort --check-only scrapegraphai

- name: Analysing the code with pylint
run: uv run poe pylint-ci

- name: Check Pylint score
run: |
pylint_score=$(uv run poe pylint-score-ci | grep 'Raw metrics' | awk '{print $4}')
Expand All @@ -23,4 +38,4 @@ jobs:
exit 1
else
echo "Pylint score is acceptable."
fi
fi

0 comments on commit 4380afb

Please sign in to comment.