Last active
April 27, 2021 13:55
-
-
Save sabderemane/3346dffc3ad6af240a0906e11f21a096 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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