Skip to content

Criando Links para Aulas #56

Criando Links para Aulas

Criando Links para Aulas #56

Workflow file for this run

name: Python application
on:
pull_request:
push:
branches:
- master
jobs:
build:
env:
PIPENV_NO_INHERIT: 1
PIPENV_IGNORE_VIRTUALENVS: 1
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.3
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports: [ '5434:5432' ]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Copying configurations
run: |
cp contrib/env-sample .env
- name: Install dependencies
run: |
pip install pipenv
pipenv sync --dev
- name: Lint with flake8
run: |
pipenv run flake8 .
- name: Test with pytest
run: |
pipenv run pytest --cov=pypro
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: gustavodsantos/curso-django