Skip to content

Commit

Permalink
pick up additional changes for coveralls on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanSteve authored and SpacemanSteve committed Feb 16, 2021
1 parent 85ef514 commit 6e075cc
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions workflows/python_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Python CI actions

on: [pull_request]
env:
PGDATABASE: metrics
PGPASSWORD: postgres
PGUSER: postgres
PGHOST: localhost
PGPORT: 5432

jobs:
build:

runs-on: ubuntu-latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

services:
postgres:
image: postgres:9.6
env:
POSTGRES_DB: metrics
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432

ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 2.7

- name: Install dependencies
run: |
python -m pip install --upgrade wheel setuptools pip
pip install -U -r requirements.txt
pip install -U -r dev-requirements.txt
- name: Test with pytest
run: |
py.test
- name: Coveralls
run: coveralls

0 comments on commit 6e075cc

Please sign in to comment.