Skip to content

Commit

Permalink
Descomentados steps de checagem estática do código na pipeline CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroeverton217 committed Feb 11, 2025
1 parent 62e1db9 commit e53afd6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/pipeline-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- 193/refactor/aumentar-a-cobertura-dos-testes-unitários
- 213-tasktestes-configurar-testes-estáticos-com-linter
pull_request:
branches:
- main
Expand Down Expand Up @@ -58,25 +58,25 @@ jobs:
- name: Run migrations
run: python API/manage.py migrate

# - name: Run Black (formatação)
# run: black --check .
- name: Run Black (formatação)
run: black --check .

# - name: Run Ruff (linting)
# run: ruff check .
- name: Run Ruff (linting)
run: ruff check .

# - name: Post comment on PR if linting fails
# if: failure()
# uses: mshick/add-pr-comment@v2
# with:
# message: |
# ❌ **O código não passou na formatação e linting!**
- name: Post comment on PR if linting fails
if: failure()
uses: mshick/add-pr-comment@v2
with:
message: |
❌ **O código não passou na formatação e linting!**
# Por favor, corrija os problemas antes de fazer push novamente:
Por favor, corrija os problemas antes de fazer push novamente:
# 🖊️ **Formatação:** Rode `black .`
# 🔍 **Linting:** Rode `ruff check --fix .`
🖊️ **Formatação:** Rode `black .`
🔍 **Linting:** Rode `ruff check --fix .`
# Depois de corrigir, faça `git add .`, `git commit -m "Corrigindo lint"` e `git push`.
Depois de corrigir, faça `git add .`, `git commit -m "Corrigindo lint"` e `git push`.
- name: Run tests with coverage
run: |
Expand Down
Binary file modified API/celerybeat-schedule
Binary file not shown.

0 comments on commit e53afd6

Please sign in to comment.