Skip to content

Instantly share code, notes, and snippets.

@sabderemane
Last active April 27, 2021 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabderemane/3346dffc3ad6af240a0906e11f21a096 to your computer and use it in GitHub Desktop.
Save sabderemane/3346dffc3ad6af240a0906e11f21a096 to your computer and use it in GitHub Desktop.
name: Test Workflow
on: push
jobs:
tests:
runs-on: ubuntu-latest
services:
image: postgres
env:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_BD: postgres
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.5.7
- uses: actions/setup-python@v1
with:
python-version: 3.5.7
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: python manage.py test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment