|
@ -15,6 +15,17 @@ jobs: |
|
|
matrix: |
|
|
matrix: |
|
|
python-version: [3.6, 3.7, 3.8] |
|
|
python-version: [3.6, 3.7, 3.8] |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
|
|
postgres: |
|
|
|
|
|
image: postgres |
|
|
|
|
|
options: >- |
|
|
|
|
|
--health-cmd pg_isready |
|
|
|
|
|
--health-interval 10s |
|
|
|
|
|
--health-timeout 5s |
|
|
|
|
|
--health-retries 5 |
|
|
|
|
|
ports: |
|
|
|
|
|
- 5432:5432 |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v2 |
|
|
- uses: actions/checkout@v2 |
|
|
- name: Set up Python ${{ matrix.python-version }} |
|
|
- name: Set up Python ${{ matrix.python-version }} |
|
@ -27,5 +38,9 @@ jobs: |
|
|
pip install -r requirements.txt |
|
|
pip install -r requirements.txt |
|
|
pip install braintree mysqlclient apprise |
|
|
pip install braintree mysqlclient apprise |
|
|
- name: Run Tests |
|
|
- name: Run Tests |
|
|
|
|
|
env: |
|
|
|
|
|
DB: postgres |
|
|
|
|
|
DB_HOST: localhost |
|
|
|
|
|
DB_PORT: 5432 |
|
|
run: | |
|
|
run: | |
|
|
python manage.py test |
|
|
python manage.py test |