Merge branch 'dev' of github.com:fazedordecodigo/PyFlunt into dev #51
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: CI | |
on: | |
push: | |
branches: [ dev ] | |
workflow_dispatch: | |
jobs: | |
executa_black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Realiza o checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Instala Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Instala dependências | |
run: poetry install | |
- name: Executa black | |
run: poetry run black --check flunt | |
executa_isort: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Realiza o checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Instala Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Instala dependências | |
run: poetry install | |
- name: Executa isort | |
run: poetry run isort --profile=black --lines-after-import=2 --check flunt | |
executa_pydocstyle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Realiza o checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Instala Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Instala dependências | |
run: poetry install | |
- name: Executa pydocstyle | |
run: poetry run pydocstyle flunt | |
executa_pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Realiza o checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Instala Poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Instala dependências | |
run: poetry install | |
- name: Executa test | |
run: poetry run pytest |