Skip to content

Commit

Permalink
Alterado Actions para incluir postgres
Browse files Browse the repository at this point in the history
close #34
  • Loading branch information
thiago-garcia committed Mar 28, 2024
1 parent f3d284d commit 5d0c409
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length = 127
max-line-length = 120
exclude = .venv, .idea, .vscode
15 changes: 13 additions & 2 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,26 @@ on: [push]

jobs:
build:
env:
PIPENV_IGNORE_VIRTUALENVS: 1
runs-on: ubuntu-latest

services:
postgres:
image: postgres:15.2
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
ports: [ '5432:5432' ]

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.10.7
- name: Set up Python 3.10.12
uses: actions/setup-python@v2
with:
python-version: 3.10.7
python-version: 3.10.12

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion contrib/env-sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DEBUG=False
SECRET_KEY=CHAVE SECRETA
ALLOWED_HOSTS=127.0.0.1, localhost
ALLOWED_HOSTS=127.0.0.1, localhost
DATABASE_URL=postgres://postgres:postgres@localhost/testdb

0 comments on commit 5d0c409

Please sign in to comment.