Skip to content

Commit

Permalink
tryfix-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ffein committed Aug 4, 2024
1 parent d96809c commit 166d5a1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-django-postgresql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test Django PostgreSQL

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.11, 3.12]
timeout-minutes: 10
steps:
- name: Start PostgreSQL
run: |
sudo systemctl start postgresql.service
pg_isready
sudo -u postgres createuser -s -d -r -w runner
- uses: actions/checkout@v4
- 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 uv
uv venv venv
. venv/bin/activate
uv pip install .[dev]
- name: Run Tests
run: |
. venv/bin/activate
make test-django DATABASE_URL=postgresql://runner@localhost:5432/db

0 comments on commit 166d5a1

Please sign in to comment.