Skip to content

Merge pull request #22 from fga-eps-mds/development #144

Merge pull request #22 from fga-eps-mds/development

Merge pull request #22 from fga-eps-mds/development #144

Workflow file for this run

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