Skip to content

generate schema.yml #32

generate schema.yml

generate schema.yml #32

Workflow file for this run

name: Django CI
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
max-parallel: 4
matrix:
db: [postgres]
python-version: ["3.10"]
services:
postgres:
image: postgres:10
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Flake8
run: flake8 .
- name: Run Tests
run: python manage.py test
env:
DJ_SECRET_KEY: xxx
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1/postgres
REDIS_URL: redis://127.0.0.1
TRACKER_URL: https://example.com
IPSTACK_TOKEN: xxx