diff --git a/.github/workflows/lint-critical.yml b/.github/workflows/lint-critical.yml new file mode 100644 index 00000000..2d3bf045 --- /dev/null +++ b/.github/workflows/lint-critical.yml @@ -0,0 +1,31 @@ +name: Lint Critical Status +on: + workflow_dispatch: + push: + branches: + - main + - task/add-linter + pull_request: + branches: + - main + + +jobs: + lint-critical: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.12.6 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Run Flake8 + run: | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics diff --git a/.github/workflows/lint-style.yml b/.github/workflows/lint-style.yml new file mode 100644 index 00000000..b54546b2 --- /dev/null +++ b/.github/workflows/lint-style.yml @@ -0,0 +1,30 @@ +name: Lint Style Check + +on: + push: + branches: + - main + - task/add-linter + pull_request: + branches: + - main + +jobs: + lint-style: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.12.6 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Run Flake8 (Style) + run: | + flake8 . --exclude=migrations,__pycache__,.venv --show-source --statistics diff --git a/README.md b/README.md index 255764a9..463f8d49 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ -# 📚 2024-2-Squad04 📚 +# 📚AGIO📚 + +![Lint Critical Status](https://github.com/unb-mds/2024-2-Agio/actions/workflows/lint-critical.yml/badge.svg) +![Lint Style Status](https://github.com/unb-mds/2024-2-Agio/actions/workflows/lint-style.yml/badge.svg)
+## 2024-2-Squad04 + ## ***Sumário*** - [1. Descrição 💡](#1-descrição-) - [2. Pré-requisitos 📋](#2-pré-requisitos-)