Skip to content

Stop stripe from continuing to try when seller isn't connected #280

Stop stripe from continuing to try when seller isn't connected

Stop stripe from continuing to try when seller isn't connected #280

Workflow file for this run

name: Run tests
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ci_test
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
cache: pip
cache-dependency-path: requirements.txt
- name: psycopg2 prerequisites
run: sudo apt-get install libpq-dev
- name: Install dependencies
run: |
set -xe
python -m pip install --upgrade pip
python -m venv venv
venv/bin/pip install --progress-bar=off -r requirements.txt
- name: Run tests
env:
DATABASE_URL: postgres://postgres:postgres@localhost/ci_test
run: |
source ${{ github.workspace }}/venv/bin/activate
pytest --cov-config=.coveragerc --cov=. -k 'serial'
pytest --cov-config=.coveragerc --cov=. --cov-append -n auto -k 'not serial'
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}