Skip to content

Feat/timeout decorator #21

Feat/timeout decorator

Feat/timeout decorator #21

Workflow file for this run

# Este workflow instalará as dependências Python, executará testes e lint com uma única versão do Python
# Para mais informações, veja: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --user poetry
poetry install
# - name: Lint with flake8
# run: |
# # interrompe a build se houver erros de sintaxe Python ou nomes indefinidos
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero trata todos os erros como avisos. O editor do GitHub tem 127 caracteres de largura
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
poetry run pytest