reformat files #134
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: Testing gestao | |
on: push | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
uses: knowsuchagency/poetry-install@v1 | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run black check | |
run: poetry run black --check . | |
pytest: | |
runs-on: ubuntu-latest | |
services: | |
gestao-db: | |
image: postgres:13.8-bullseye | |
env: | |
POSTGRES_PASSWORD: gestao | |
POSTGRES_USER: gestao | |
POSTGRES_DB: gestao | |
options: >- | |
--health-cmd="pg_isready" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install deps | |
uses: knowsuchagency/poetry-install@v1 | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
- name: Run pytest check | |
run: poetry run pytest -vv --cov="gestao" . | |
env: | |
HOST: "0.0.0.0" | |
DB_HOST: localhost | |
- name: Generate Sonar-metrics | |
run: coverage report |