Skip to content

run-canary-tests

run-canary-tests #419

name: run-canary-tests
on:
schedule:
- cron: '0 8 * * *'
jobs:
canary_tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# 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
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
poetry run python manage.py collectstatic --noinput
- name: Run Canary Tests
run: poetry run python manage.py test --tag=canary
env:
DB_USER: postgres
DB_PASS: postgres
DB_HOST: localhost
DB_PORT: 5432