Skip to content

feat: adiciona lib mock para testes unitários #5

feat: adiciona lib mock para testes unitários

feat: adiciona lib mock para testes unitários #5

Workflow file for this run

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=.