diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a18bcfa..83eeeb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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