Skip to content

Remove mysqlclient and mysql from django CI workflow #9

Remove mysqlclient and mysql from django CI workflow

Remove mysqlclient and mysql from django CI workflow #9

Workflow file for this run

name: Django CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, '3.10']
db: [postgres]
include:
- db: postgres
db_port: 5432
services:
postgres:
image: postgres:16
ports:
- 5432:5432
env:
POSTGRES_USER: permagate
POSTGRES_PASSWORD: SpYkxYy1dMmo7Bk
options:
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- 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 -r requirements.txt
- name: Run Tests
env:
DATABASE_URL: ${{ matrix.db }}://permagate:SpYkxYy1dMmo7Bk@127.0.0.1:${{ matrix.db_port }}/permagate
run: |
python manage.py test --keepdb