Skip to content

update para o gerenciador de dependecias 'poetry' #73

update para o gerenciador de dependecias 'poetry'

update para o gerenciador de dependecias 'poetry' #73

Workflow file for this run

name: Django CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.3
env:
POSTGRES_USER: pythonpro
POSTGRES_PASSWORD: pythonpro
POSTGRES_DB: cursodjango
ports: [ '5432:5432' ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies (using poetry)
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install --with dev --sync
- name: Lint
run: poetry run task lint
- name: Copy instance config variables
run: cp contrib/env-sample .env
- name: Run testes do Django com cobertura
run: poetry run pytest pypro --cov=pypro --cov-fail-under=20