Update test.yml

This commit is contained in:
Daniel Grams 2021-01-26 19:16:41 +01:00
parent 0dc7cf7e8b
commit c448dd9e7d
2 changed files with 1 additions and 21 deletions

View File

@ -3,7 +3,7 @@
name: Tests
# Controls when the action will run.
on: [workflow_dispatch]
on: [pull_request, workflow_dispatch]
jobs:
# Label of the container job

View File

@ -1,20 +0,0 @@
language: python
python:
- "3.8"
addons:
apt:
packages:
- postgresql-10-postgis-2.5
- postgresql-10-postgis-2.5-scripts
postgresql: '10'
services:
- postgresql
install:
- pip install -r requirements.txt
before_script:
- psql -c 'create database gsevpt_tests;' -U postgres
- psql -c 'create extension postgis;' -U postgres -d gsevpt_tests
script:
- pytest --cov=project
after_success:
— coveralls