feat: adiciona lib mock para testes unitários #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pipeline de Testes | |
on: | |
push: | |
branches: | |
- teste_pipeline | |
pull_request: | |
branches: | |
- teste_pipeline | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Verificar código | |
uses: actions/checkout@v4 | |
- name: Configurar Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Instalar Poetry | |
run: pip install poetry | |
- name: Instalar dependências | |
run: poetry install | |
- name: Executar ruff | |
run: poetry run ruff check . | |
- name: Verificar formatação com black | |
run: poetry run black --check . | |
- name: Executar bandit | |
run: poetry run bandit -r . | |
- name: Executar testes unitários | |
run: poetry run pytest --cov=. |