Skip to content

Start to use pyproject.toml #138

Start to use pyproject.toml

Start to use pyproject.toml #138

Workflow file for this run

name: FVH Application Evaluator tests CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: application_evaluator
POSTGRES_USER: application_evaluator
POSTGRES_PASSWORD: application_evaluator
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
cd django_server; pipenv install --system --deploy
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
cd django_server
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --statistics
- name: Test
run: |
cd django_server
coverage run --source='.' manage.py test
coverage report