Skip to content

Commit

Permalink
Update django and use GH actions services
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Oct 22, 2024
1 parent 8f0d950 commit 563373a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@ on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10.x", "3.11.x", "3.12.x"]
django-version: ["5.0.x", "5.1.x"]
env:
redis-version: "6.2"
pg-version: "15"
runs-on: ubuntu-latest

services:
redis:
image: redis:6.2-alpine
ports:
- 6379:6379
postgres:
image: postgis/postgis:15-3.3-alpine
env:
POSTGRES_DB: dash
POSTGRES_USER: dash
POSTGRES_PASSWORD: rapidpro
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}

- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ env.pg-version }}
postgresql db: dash
postgresql user: dash
postgresql password: rapidpro

- name: Install Python
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 563373a

Please sign in to comment.