ci: switch tests and schema jobs to sqlite-backed workflow
Some checks failed
CI / lint (push) Successful in 6s
CI / test (push) Failing after 9s
CI / build-container (push) Has been skipped

This commit is contained in:
Paperclip CTO
2026-05-18 14:59:10 +02:00
parent 7ed33ffc08
commit b07d8e056d

View File

@@ -10,8 +10,8 @@ env:
DJANGO_SECRET_KEY: ci-secret-key-not-for-production
DJANGO_SETTINGS_MODULE: config.settings.test
DJANGO_ALLOWED_HOSTS: testserver,localhost
DATABASE_URL: postgres://training:training@postgres:5432/training_test
REDIS_URL: redis://redis:6379/0
DATABASE_URL: sqlite:////tmp/training_test.sqlite3
REDIS_URL: redis://localhost:6379/0
jobs:
test:
@@ -22,31 +22,6 @@ jobs:
matrix:
python-version: ["3.12"]
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: training_test
POSTGRES_USER: training
POSTGRES_PASSWORD: training
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 10
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 10
steps:
- uses: actions/checkout@v4
@@ -101,31 +76,6 @@ jobs:
runs-on: ubuntu-latest
needs: test
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: training_test
POSTGRES_USER: training
POSTGRES_PASSWORD: training
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 5s
--health-timeout 5s
--health-retries 10
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 3s
--health-retries 10
steps:
- uses: actions/checkout@v4